Split into more modules
This commit is contained in:
parent
b6760195ce
commit
70f3e0a538
15 changed files with 219 additions and 124 deletions
19
modules/media/games.nix
Normal file
19
modules/media/games.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.media;
|
||||
in {
|
||||
options.modules.media = {
|
||||
steam.enable = mkBoolOpt false;
|
||||
lutris.enable = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = {
|
||||
user.packages = with pkgs; [
|
||||
(mkIf cfg.steam.enable steam)
|
||||
(mkIf cfg.lutris.enable lutris)
|
||||
(mkIf (cfg.steam.enable || cfg.lutris.enable) protontricks)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue