Skip to content

Commit

Permalink
Add host specific home config
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Nov 12, 2024
1 parent 0335f49 commit e842d4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion homes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
username,
theme,
image,
config,
lib,
...
}:
let
Expand All @@ -23,6 +25,7 @@ let
inherit theme image inputs;
user = username;
};
host-home-config = ../hosts/${config.networking.hostName}/home.nix;
in
{
# home-manager = mkIf env.useHomeManager {
Expand Down Expand Up @@ -54,7 +57,10 @@ in
# the system expects user directories to be found in the present
# directory, or will exit with directory not found errors
# users.${username} = import ../modules/home-manager/home.nix;
users.${username} = import ./${username};
# users.${username} = (import ./${username}) // (import ../modules/home-manager/home.nix);
users.${username} =
(import ./${username})
// lib.optionalAttrs (builtins.pathExists host-home-config) (import host-home-config);

# users = genAttrs config.modules.system.users (name: ./${name});
};
Expand Down

0 comments on commit e842d4e

Please sign in to comment.