diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/gaming/default.nix | 19 | ||||
| -rw-r--r-- | modules/gaming/homestuck.nix | 18 | ||||
| -rw-r--r-- | modules/gaming/minecraft.nix | 17 | ||||
| -rw-r--r-- | system/gaming/steam.nix (renamed from modules/gaming/steam.nix) | 4 |
4 files changed, 2 insertions, 56 deletions
diff --git a/modules/gaming/default.nix b/modules/gaming/default.nix deleted file mode 100644 index a0c826c..0000000 --- a/modules/gaming/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ - lib, - config, - ... -}: let - inherit (lib) mkEnableOption; -in { - imports = [ - ./homestuck.nix - ./minecraft.nix - ./steam.nix - ]; - - options.gaming = { - homestuck = mkEnableOption "Install the unofficial homestuck collection."; - minecraft = mkEnableOption "Install the minecraft block game."; - steam = mkEnableOption "Install the steam game launcher."; - }; -} diff --git a/modules/gaming/homestuck.nix b/modules/gaming/homestuck.nix deleted file mode 100644 index 681325b..0000000 --- a/modules/gaming/homestuck.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ - lib, - config, - inputs, - system, - ... -}: let - inherit (lib) mkIf; - cfg = config.gaming; -in { - config = mkIf cfg.homestuck { - home-manager.users.${config.user} = { - home.packages = [ - inputs.self.packages.${system}.unofficial-homestuck-collection - ]; - }; - }; -} diff --git a/modules/gaming/minecraft.nix b/modules/gaming/minecraft.nix deleted file mode 100644 index 5de20e6..0000000 --- a/modules/gaming/minecraft.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - lib, - config, - pkgs, - ... -}: let - inherit (lib) mkIf; - cfg = config.gaming; -in { - config = mkIf cfg.minecraft { - home-manager.users.${config.user} = { - home.packages = with pkgs; [ - prismlauncher - ]; - }; - }; -} diff --git a/modules/gaming/steam.nix b/system/gaming/steam.nix index 53ab252..cd243e5 100644 --- a/modules/gaming/steam.nix +++ b/system/gaming/steam.nix @@ -4,9 +4,9 @@ ... }: let inherit (lib) mkIf; - cfg = config.gaming; + cfg = config.gaming.steam; in { - config = mkIf cfg.steam { + config = mkIf cfg.enable { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "steam" |