summaryrefslogtreecommitdiff
path: root/os/common/modules/home-manager.nix
blob: d93df49ec70c3604c4b129eda0f78aa5714dca76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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;
      };
  };
}