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")
(../../system/gui + "/${userSettings.desktop}.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/util/default.nix
../../system/utilities/default.nix
];
nix = {
@ -72,15 +64,8 @@
uid = 1000;
};
environment.systemPackages = with pkgs; [
vim
wget
zsh
git
rsync
cryptsetup
home-manager
];
# environment.systemPackages = with pkgs; [
# ];
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;

View File

@ -9,8 +9,19 @@
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.userDirs = {

View File

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.openrgb-with-all-plugins ];
environment.systemPackages = with pkgs; [
openrgb-with-all-plugins
];
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, ... }:
{
environment.systemPackages = [
pkgs.firewalld
pkgs.firewalld-gui
environment.systemPackages = with pkgs; [
firewalld
firewalld-gui
];
networking.firewall.enable = true;
}

View File

@ -4,5 +4,6 @@
imports = [
./dbus.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, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
wine
protonup-qt
];
]);
}

View File

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

View File

@ -7,9 +7,9 @@
# enableRenice = true;
};
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
mangohud
goverlay
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, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
blender
obs-studio
];
]);
}

View File

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

View File

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

View File

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
beeper
discord
signal-desktop
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, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
anytype
logseq
];
]);
}

View File

@ -1,10 +1,10 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
onlyoffice-bin
xournalpp
zathura
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, ... }:
{
environment.systemPackages = with pkgs; [
home.packages = (with pkgs; [
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
]);
}