mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 02:25:12 -05:00
refactor: improved readability
This commit is contained in:
parent
0cadd98864
commit
c8e8391eb4
2 changed files with 11 additions and 4 deletions
|
@ -60,7 +60,9 @@ in {
|
||||||
sessionVariables = {};
|
sessionVariables = {};
|
||||||
};
|
};
|
||||||
imports = [
|
imports = [
|
||||||
{home.stateVersion = config.system.stateVersion;}
|
{
|
||||||
|
home.stateVersion = config.system.stateVersion;
|
||||||
|
}
|
||||||
(
|
(
|
||||||
import ./configs/${hostname}.nix {flake = flake;}
|
import ./configs/${hostname}.nix {flake = flake;}
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
hostname = config.networking.hostName;
|
|
||||||
inherit (flake.config.people) user1;
|
inherit (flake.config.people) user1;
|
||||||
inherit (flake.config.people.users.${user1}) name;
|
inherit (flake.config.people.users.${user1}) name;
|
||||||
|
|
||||||
|
hostname = config.networking.hostName;
|
||||||
in {
|
in {
|
||||||
users = {
|
users = {
|
||||||
users.${user1} = {
|
users.${user1} = {
|
||||||
|
@ -37,8 +38,12 @@ in {
|
||||||
sessionVariables = {};
|
sessionVariables = {};
|
||||||
};
|
};
|
||||||
imports = [
|
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