tidied home.nix

This commit is contained in:
serenity-F 2025-06-01 16:15:50 +10:00
parent bd36c8640f
commit 9ca2817610
2 changed files with 9 additions and 27 deletions

View file

@ -68,9 +68,14 @@ in {
./home.nix
];
home = {
username = "${primaryUser}";
homeDirectory = "${homeDir}";
stateVersion = "24.11";
username = "${primaryUser}"; # passes username from `flake.nix`
homeDirectory = "${homeDir}"; # passes homedir from `flake.nix`
file."Wallpapers" = { # copies wallpapers from flake to home directory
source = ../wallpapers;
target = "${wallpapersPath}";
recursive = true;
};
stateVersion = "24.11"; # IMPORTANT
};
};
};

View file

@ -1,4 +1,4 @@
{ inputs, outputs, lib, config, flakePath, disksPath, primaryUser, homeDir, wallpapersPath, wallpaper, ... }:
{ lib, config, ... }:
with lib;
@ -8,29 +8,6 @@ with lib;
./themepkgs.nix # imports declared theme packages
];
home-manager = {
extraSpecialArgs = {
inherit inputs outputs;
inherit label version;
inherit flakePath disksPath;
inherit primaryUser homeDir;
inherit wallpapersPath wallpaper;
inherit hostname;
};
users = {
${primaryUser} = {
imports = [ ];
home = {
file."Wallpapers" = { # copies wallpapers from flake to home directory
source = ../wallpapers;
target = "${wallpapersPath}";
recursive = true;
};
};
};
};
};
## Configurable options for themes
options.theme = {