mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
refactor: improved readability
This commit is contained in:
parent
0cadd98864
commit
c8e8391eb4
2 changed files with 11 additions and 4 deletions
|
@ -4,9 +4,10 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
hostname = config.networking.hostName;
|
||||
inherit (flake.config.people) user1;
|
||||
inherit (flake.config.people.users.${user1}) name;
|
||||
|
||||
hostname = config.networking.hostName;
|
||||
in {
|
||||
users = {
|
||||
users.${user1} = {
|
||||
|
@ -37,8 +38,12 @@ in {
|
|||
sessionVariables = {};
|
||||
};
|
||||
imports = [
|
||||
{home.stateVersion = config.system.stateVersion;}
|
||||
(import ./configs/${hostname}.nix {flake = flake;})
|
||||
{
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
}
|
||||
(
|
||||
import ./configs/${hostname}.nix {flake = flake;}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue