stuff
This commit is contained in:
parent
60f8850908
commit
56c97b3712
9 changed files with 28 additions and 88 deletions
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.profiles.emulation;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.cemu
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.profiles.emulation;
|
||||
in
|
||||
{
|
||||
options.profiles.emulation = {
|
||||
enable = lib.mkEnableOption "emulation";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.profiles.desktop.enable;
|
||||
message = "The emulation profile depends on the desktop profile.";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.profiles.emulation;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.dolphin-emu
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.profiles.emulation;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.rmg-wayland
|
||||
];
|
||||
};
|
||||
}
|
21
profiles/gaming/retroarch.nix
Normal file
21
profiles/gaming/retroarch.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.profiles.gaming;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages =
|
||||
let
|
||||
retroarch = pkgs.retroarch.withCores (cores: [
|
||||
cores.parallel-n64
|
||||
cores.dolphin
|
||||
]);
|
||||
in
|
||||
[ retroarch ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue