diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/games/default.nix | 3 | ||||
-rw-r--r-- | modules/games/games.nix | 23 | ||||
-rw-r--r-- | modules/programs/programs.nix | 36 |
3 files changed, 48 insertions, 14 deletions
diff --git a/modules/games/default.nix b/modules/games/default.nix new file mode 100644 index 0000000..ff93482 --- /dev/null +++ b/modules/games/default.nix @@ -0,0 +1,3 @@ +[ + ./games.nix +] diff --git a/modules/games/games.nix b/modules/games/games.nix new file mode 100644 index 0000000..509b105 --- /dev/null +++ b/modules/games/games.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, user, ... }: +with lib; +{ + options = { + games = { + enable = mkOption { + type = types.bool; + default = false; + }; + }; + }; + + config = mkIf (config.games.enable) { + environment.systemPackages = with pkgs; [ + steam-run + ]; + + home-manager.users.${user}.home.packages = with pkgs; [ + minetest + vintagestory + ]; + }; +} diff --git a/modules/programs/programs.nix b/modules/programs/programs.nix index b9a003f..2ef9ec9 100644 --- a/modules/programs/programs.nix +++ b/modules/programs/programs.nix @@ -1,19 +1,27 @@ -{ config, lib, pkgs, user, ... }: +{ config, inputs, lib, pkgs, user, ... }: with lib; { - config.home-manager.users.${user} = mkIf (config.xserver.enable) { - home.packages = with pkgs; [ - libreoffice - hunspell - hunspellDicts.en_US + config = mkIf (config.xserver.enable) + { + home-manager.users.${user} = { + home.packages = with pkgs; [ + libreoffice + hunspell + hunspellDicts.en_US + + (pass.withExtensions (exts: [exts.pass-otp ])) + thefuck + mpc-cli + pavucontrol + qbittorrent + ffmpeg + mpv + ]; - (pass.withExtensions (exts: [exts.pass-otp ])) - thefuck - mpc-cli - pavucontrol - qbittorrent - ffmpeg - mpv - ]; + programs.vscode = { + enable = true; + package = pkgs.vscode.fhs; + }; + }; }; } |