feat(gaming): add enable option
This commit is contained in:
1 parent
cd1880e7c9
commit
a3fd052204
1 file changed
+8
-2
@@ -1,11 +1,17 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.gaming;
|
||||
in
|
||||
{
|
||||
options.gaming.enable = lib.mkEnableOption "gaming";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nixpkgs.allowedUnfree = [
|
||||
"steam"
|
||||
"steam-unwrapped"
|
||||
@@ -29,7 +35,6 @@
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# lutris
|
||||
mangohud
|
||||
];
|
||||
|
||||
@@ -47,4 +52,5 @@
|
||||
value = "524288";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user