refactor: improved readability

This commit is contained in:
Nick 2024-11-06 22:00:30 -06:00
parent 0cadd98864
commit c8e8391eb4
2 changed files with 11 additions and 4 deletions

View file

@ -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;}
)
];
};
};