Split into more modules

This commit is contained in:
Paul-Henri Froidmont 2023-03-23 19:01:42 +01:00
parent b6760195ce
commit 70f3e0a538
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
15 changed files with 219 additions and 124 deletions

19
modules/media/games.nix Normal file
View 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)
];
};
}