nix/home-manager/default.nix

18 lines
546 B
Nix

{ lib, stateVersion, username, hostname, ... }:
{
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = stateVersion;
programs.home-manager.enable = true;
home.sessionPath = [
"$HOME/.local/bin"
];
imports = [
../nixos/includes/system/overlay.nix
../hosts/${hostname}/home-config.nix
../modules/home-manager/default.nix
]++ lib.optional (
builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix
) ../hosts/${hostname}/includes/home-manager.nix;
}