tidied home.nix
This commit is contained in:
parent
bd36c8640f
commit
9ca2817610
2 changed files with 9 additions and 27 deletions
|
|
@ -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
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue