Separate System and User packages

- Move user programs out of systems section and int
  user section
- Install user packages with home manager rather than
  system wide
This commit is contained in:
Sravan Balaji 2024-03-27 16:27:20 -04:00
parent 59f88dad0f
commit 7f320b85d4
43 changed files with 120 additions and 107 deletions

View File

@ -9,16 +9,8 @@
(../../hosts + "/${systemSettings.hardwareConfiguration}.nix") (../../hosts + "/${systemSettings.hardwareConfiguration}.nix")
(../../system/gui + "/${userSettings.desktop}.nix") (../../system/gui + "/${userSettings.desktop}.nix")
../../system/hardware/default.nix ../../system/hardware/default.nix
(../../system/programs/browser + "/${userSettings.browser}.nix")
../../system/programs/development/default.nix
../../system/programs/gaming/default.nix
../../system/programs/launcher/default.nix
../../system/programs/media/default.nix
../../system/programs/productivity/default.nix
(../../system/programs/terminal + "/${userSettings.term}.nix")
../../system/programs/utilities/default.nix
../../system/security/default.nix ../../system/security/default.nix
../../system/util/default.nix ../../system/utilities/default.nix
]; ];
nix = { nix = {
@ -72,15 +64,8 @@
uid = 1000; uid = 1000;
}; };
environment.systemPackages = with pkgs; [ # environment.systemPackages = with pkgs; [
vim # ];
wget
zsh
git
rsync
cryptsetup
home-manager
];
environment.shells = with pkgs; [ zsh ]; environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;

View File

@ -9,8 +9,19 @@
home.stateVersion = "23.11"; home.stateVersion = "23.11";
home.packages = (with pkgs; [ imports = [
]); (../../user/browser + "/${userSettings.browser}.nix")
../../user/development/default.nix
../../user/gaming/default.nix
../../user/launcher/default.nix
../../user/media/default.nix
../../user/productivity/default.nix
(../../user/terminal + "/${userSettings.term}.nix")
../../user/utilities/default.nix
];
# home.packages = (with pkgs; [
# ]);
xdg.enable = true; xdg.enable = true;
xdg.userDirs = { xdg.userDirs = {

View File

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = [ pkgs.openrgb-with-all-plugins ]; environment.systemPackages = with pkgs; [
openrgb-with-all-plugins
];
services.hardware.openrgb.enable = true; services.hardware.openrgb.enable = true;
} }

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vivaldi
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vscode
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
dmenu
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
rofi
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
gnucash
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
kitty
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
ventoy
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
via
];
}

View File

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
bitwarden
];
}

View File

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = [ environment.systemPackages = with pkgs; [
pkgs.firewalld firewalld
pkgs.firewalld-gui firewalld-gui
]; ];
networking.firewall.enable = true; networking.firewall.enable = true;
} }

View File

@ -4,5 +4,6 @@
imports = [ imports = [
./dbus.nix ./dbus.nix
./gnome-keyring.nix ./gnome-keyring.nix
./miscellaneous.nix
]; ];
} }

View File

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vim
wget
curl
zsh
git
rsync
cryptsetup
home-manager
];
}

7
user/browser/vivaldi.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
vivaldi
]);
}

View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
vscode
]);
}

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
wine wine
protonup-qt protonup-qt
]; ]);
} }

View File

@ -7,10 +7,10 @@
gamescopeSession.enable = true; gamescopeSession.enable = true;
}; };
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
bottles bottles
lutris lutris
heroic heroic
prismlauncher prismlauncher
]; ]);
} }

View File

@ -7,9 +7,9 @@
# enableRenice = true; # enableRenice = true;
}; };
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
mangohud mangohud
goverlay goverlay
vkbasalt vkbasalt
]; ]);
} }

7
user/launcher/dmenu.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
dmenu
]);
}

7
user/launcher/rofi.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
rofi
]);
}

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
blender blender
obs-studio obs-studio
]; ]);
} }

View File

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
gimp gimp
libsForQt5.kdenlive libsForQt5.kdenlive
ffmpeg ffmpeg
]; ]);
} }

View File

@ -1,12 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
gnome.eog gnome.eog
mpv mpv
trackma-gtk trackma-gtk
pocket-casts pocket-casts
spotify spotify
spicetify-cli spicetify-cli
]; ]);
} }

View File

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
beeper beeper
discord discord
signal-desktop signal-desktop
zoom-us zoom-us
]; ]);
} }

View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
gnucash
]);
}

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
anytype anytype
logseq logseq
]; ]);
} }

View File

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
onlyoffice-bin onlyoffice-bin
xournalpp xournalpp
zathura zathura
libsForQt5.okular libsForQt5.okular
]; ]);
} }

7
user/terminal/kitty.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
kitty
]);
}

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ home.packages = (with pkgs; [
prusa-slicer prusa-slicer
]; ]);
} }

View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
ventoy
]);
}

View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
via
]);
}

View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
home.packages = (with pkgs; [
bitwarden
]);
}