split home.packages into module

This commit is contained in:
LavaDesu 2021-07-15 20:57:51 +07:00
parent b1cc1822e1
commit c8a32a3c35
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 33 additions and 30 deletions

View file

@ -0,0 +1,32 @@
{ config, enableGUI, pkgs, ... }: {
home.packages = with pkgs; [
ffmpeg
gnupg
neofetch
nodejs-16_x
pamixer
rnix-lsp
transcrypt
unrar
wine-osu
(winetricks.override { wine = wine-osu; })
youtube-dl
nodePackages_latest.pnpm
] ++ lib.optionals enableGUI [
brave
discord-canary
element-desktop
feh
gnome.file-roller
gimp
kotatogram-desktop
lxappearance
maim
pavucontrol
tor-browser-bundle-bin
transmission-remote-gtk
xclip
xorg.xgamma
];
}

View file

@ -10,39 +10,10 @@
username = "rin"; username = "rin";
homeDirectory = "/home/rin"; homeDirectory = "/home/rin";
stateVersion = "21.05"; stateVersion = "21.05";
packages = with pkgs; [
ffmpeg
gnupg
neofetch
nodejs-16_x
pamixer
rnix-lsp
transcrypt
unrar
wine-osu
(winetricks.override { wine = wine-osu; })
youtube-dl
nodePackages_latest.pnpm
] ++ lib.optionals enableGUI [
brave
discord-canary
element-desktop
feh
gnome.file-roller
gimp
kotatogram-desktop
lxappearance
maim
pavucontrol
tor-browser-bundle-bin
transmission-remote-gtk
xclip
xorg.xgamma
];
}; };
imports = with modules.user; [ imports = with modules.user; [
packages-rin
sessionVariables sessionVariables
direnv direnv