blob: 821274702ec3db76bbcb3722f8c08f73fbea14e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ config, lib, ... }:
let
username = config.global.userdata.name;
host = config.networking.hostName;
in
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = false;
users.${username} =
{ ... }:
{
imports = [
../../../home/common/home.nix
]
++ lib.optional (builtins.pathExists ../../../home/${host}) ../../../home/${host}/home.nix;
};
};
}
|