Install nh and friends, modularize nixos conf.
This commit is contained in:
parent
ea86d38cd1
commit
5054b13564
14 changed files with 302 additions and 209 deletions
15
modules/nixos/gaming.nix
Normal file
15
modules/nixos/gaming.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# Getting gaming setup
|
||||
options = {
|
||||
crony.gaming.enable = lib.mkEnableOption "enable gaming related stuff, like steam and gamemode";
|
||||
};
|
||||
config = lib.mkIf config.crony.gaming.enable {
|
||||
programs.steam.enable = true;
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
programs.gamemode.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue