diff --git a/home/programs/graphical/default.nix b/home/programs/graphical/default.nix index 5eac6e1..2285b7c 100644 --- a/home/programs/graphical/default.nix +++ b/home/programs/graphical/default.nix @@ -6,5 +6,6 @@ _: { ./bars ./browsers ./file-managers + ./games ]; } diff --git a/home/programs/graphical/games/default.nix b/home/programs/graphical/games/default.nix new file mode 100644 index 0000000..f5d053f --- /dev/null +++ b/home/programs/graphical/games/default.nix @@ -0,0 +1,5 @@ +_: { + imports = [ + ./prismlauncher.nix + ]; +} diff --git a/home/programs/graphical/games/prismlauncher.nix b/home/programs/graphical/games/prismlauncher.nix new file mode 100644 index 0000000..ce39cb8 --- /dev/null +++ b/home/programs/graphical/games/prismlauncher.nix @@ -0,0 +1,14 @@ +{ + lib, + pkgs, + osConfig, + ... +}: let + inherit (lib) mkIf; + + cfg = osConfig.myOptions.home-manager.programs.games.prismlauncher; +in { + config = mkIf cfg.enable { + home.packages = with pkgs; [ prismlauncher ]; + }; +} diff --git a/hosts/voyager/default.nix b/hosts/voyager/default.nix index 995436f..25f9581 100644 --- a/hosts/voyager/default.nix +++ b/hosts/voyager/default.nix @@ -64,6 +64,7 @@ ".config/WebCord" ".local/share/Smart Code ltd/Stremio" ".config/obs-studio" + ".local/share/PrismLauncher" # Tools ".ssh" @@ -216,6 +217,9 @@ coding = { python.enable = true; }; + games = { + prismlauncher.enable = true; + }; }; services = { diff --git a/options/home/programs/default.nix b/options/home/programs/default.nix index ac3222c..4135ce3 100644 --- a/options/home/programs/default.nix +++ b/options/home/programs/default.nix @@ -61,5 +61,9 @@ in coding = { python.enable = mkEnableOption "Python coding utilities"; }; + + games = { + prismlauncher.enable = mkEnableOption "PrismLauncher"; + }; }; }