treewide: cleanup config with enable options
This commit is contained in:
parent
d469c5fa79
commit
0a387960a2
28 changed files with 420 additions and 358 deletions
24
user/gaming.nix
Normal file
24
user/gaming.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.gaming;
|
||||
in
|
||||
{
|
||||
options.my.gaming.enable = lib.mkEnableOption { };
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.mangohud.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# lutris-unwrapped
|
||||
# steam # It's enabled in the system config
|
||||
tlauncher
|
||||
gamescope
|
||||
glxinfo
|
||||
vulkan-tools
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue