feat: add standalone home-manager module

This commit is contained in:
Yorick Barbanneau 2024-06-19 01:05:50 +02:00
parent dea3740249
commit 7b22abd626

17
home-manager/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ lib, stateVersion, username, hostname, ... }:
{
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = stateVersion;
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;
}