add prismlauncher in games module

This commit is contained in:
Noa Aarts 2024-04-23 09:27:25 +02:00
parent 6aa1340398
commit d4fca6cd0e
2 changed files with 19 additions and 0 deletions

View file

@ -6,6 +6,7 @@
inputs.nixvim.homeManagerModules.nixvim
../../common/zsh.nix
../../modules/hyprland.nix
../../modules/games
../../common/kitty.nix
../../common/git.nix
../../common/nvim/nvim.nix
@ -32,6 +33,7 @@
modules = {
hyprland.enable = true;
games.enable = true;
};
# The home.packages option allows you to install Nix packages into your

17
modules/games/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ lib, config, pkgs}:
let
cfg = config.modules.games;
in
{
options.modules.games = {
enable = lib.mkEnableOption "enable gaming services";
};
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.prismlauncher
];
};
}