move all home.packages to users.users.${username}.packages

This commit is contained in:
jacekpoz 2024-10-02 16:55:18 +02:00
parent 76a2eeda57
commit 1a83ef8613
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
11 changed files with 462 additions and 472 deletions

View file

@ -8,8 +8,7 @@
inherit (lib.attrsets) attrValues;
in {
home-manager.users.${username} = {
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs)
eza
ripgrep
@ -42,5 +41,4 @@ in {
wireguard-tools
;
};
};
}

View file

@ -10,10 +10,8 @@
in {
programs.steam.enable = true;
home-manager.users.${username} = {
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs.steamPackages) steamcmd;
inherit (pkgs) steam-tui;
};
};
}

View file

@ -8,8 +8,7 @@
inherit (lib.attrsets) attrValues;
in {
home-manager.users.${username} = {
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs)
keepassxc
eza
@ -123,5 +122,4 @@ in {
perf
;
};
};
}

View file

@ -8,8 +8,7 @@
inherit (lib.attrsets) attrValues;
in {
home-manager.users.${username} = {
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs)
keepassxc
eza
@ -77,5 +76,4 @@ in {
perf
;
};
};
}

View file

@ -8,8 +8,7 @@
inherit (lib.attrsets) attrValues;
in {
home-manager.users.${username} = {
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs)
keepassxc
eza
@ -115,5 +114,4 @@ in {
perf
;
};
};
}

View file

@ -8,8 +8,7 @@
inherit (lib.attrsets) attrValues;
in {
home-manager.users.${username} = {
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs)
keepassxc
eza
@ -97,5 +96,4 @@ in {
perf
;
};
};
}

View file

@ -28,7 +28,11 @@ in {
config = mkIf cfg.enable {
programs.zsh.enable = true;
users.users.${username}.shell = pkgs.zsh;
users.users.${username} = {
shell = pkgs.zsh;
# for fzf-tab
packages = [ pkgs.fzf ];
};
environment = {
shells = [ pkgs.zsh ];
@ -36,8 +40,6 @@ in {
};
home-manager.users.${username} = {
# for fzf-tab
home.packages = [ pkgs.fzf ];
programs.zsh = {
enable = true;
shellAliases = {

View file

@ -16,9 +16,9 @@ in {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.gtklock.text = "auth include login";
home-manager.users.${username} = {
home.packages = [ pkgs.gtklock ];
users.users.${username}.packages = [ pkgs.gtklock ];
home-manager.users.${username} = {
xdg.configFile."gtklock/config.ini".text = ''
[main]
gtk-theme=${config.poz.themes.gtk.name}

View file

@ -162,10 +162,7 @@ in {
portalPackage = xdg-desktop-portal-hyprland;
};
home-manager.users.${username} = {
xdg.dataFile = mkIf (cfg.startupSound != null) { "hypr/startup_sound".source = cfg.startupSound; };
home.packages = attrValues {
users.users.${username}.packages = attrValues {
inherit (pkgs)
cliphist
wl-clipboard
@ -179,6 +176,9 @@ in {
;
};
home-manager.users.${username} = {
xdg.dataFile = mkIf (cfg.startupSound != null) { "hypr/startup_sound".source = cfg.startupSound; };
wayland.windowManager.hyprland = {
enable = true;
package = hyprland;

View file

@ -37,13 +37,13 @@ in {
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
home.packages = [
users.users.${username}.packages = [
inputs.quickshell.packages.${pkgs.system}.default
# for da poz
pkgs.qt6.qtsvg
];
home-manager.users.${username} = {
xdg.configFile."quickshell/manifest.conf".text = ''
${concatStrings (mapAttrsToList (name: value: ''
${name} = ${value}

View file

@ -16,8 +16,7 @@ in {
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
home.packages = [
users.users.${username}.packages = [
(pkgs.vesktop.overrideAttrs (old: {
patches = (old.patches or []) ++ [ ./readonlyFix.patch ];
# thanks aleph :3
@ -45,6 +44,7 @@ in {
}))
];
home-manager.users.${username} = {
xdg.configFile."vesktop/settings.json".text = builtins.toJSON {
discordBranch = "ptb";
firstLaunch = false;