forked from fabian/nix_config
re-structure package configuration. fully modularize everything
This commit is contained in:
parent
9418588fed
commit
6a51c08183
8 changed files with 111 additions and 94 deletions
|
@ -17,6 +17,7 @@ in {
|
|||
packages = with pkgs; [
|
||||
calc
|
||||
file
|
||||
gcc
|
||||
htop
|
||||
killall
|
||||
man-pages
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
./terminal
|
||||
./neovim.nix
|
||||
./baseline.nix
|
||||
./steam
|
||||
./gaming
|
||||
./yubikey.nix
|
||||
./browsers.nix
|
||||
./gui
|
||||
./zsh
|
||||
./gpg.nix
|
||||
./defaultDesktopPack.nix
|
||||
];
|
||||
}
|
||||
|
|
34
home/modules/defaultDesktopPack.nix
Normal file
34
home/modules/defaultDesktopPack.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.apps.defaultDesktopPack;
|
||||
in {
|
||||
options.local.apps.defaultDesktopPack = {
|
||||
enable = mkEnableOption "common desktop apps";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
calibre
|
||||
discord
|
||||
gwenview
|
||||
libreoffice-fresh
|
||||
mpv
|
||||
obs-studio
|
||||
pavucontrol
|
||||
pdfarranger
|
||||
qpdfview
|
||||
runelite
|
||||
spotify
|
||||
tdesktop
|
||||
usbutils
|
||||
vpsfree-client
|
||||
vscodium-fhs
|
||||
zola
|
||||
zoom-us
|
||||
];
|
||||
};
|
||||
}
|
28
home/modules/gaming/default.nix
Normal file
28
home/modules/gaming/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.apps.gaming;
|
||||
in {
|
||||
options.local.apps.gaming = {
|
||||
enable = mkEnableOption "gaming apps";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [
|
||||
# Steam. todo: move to the steam module later
|
||||
(pkgs.callPackage ./package.nix {})
|
||||
pkgs.protonup
|
||||
pkgs.winetricks
|
||||
pkgs.protontricks
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
lutris
|
||||
openrct2
|
||||
prismlauncher
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.apps.steam;
|
||||
in {
|
||||
options.local.apps.steam = {
|
||||
enable = mkEnableOption "Steam settings";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [
|
||||
(pkgs.callPackage ./package.nix {})
|
||||
pkgs.protonup
|
||||
pkgs.winetricks
|
||||
pkgs.protontricks
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue