move dotfiles flake

This commit is contained in:
2026-04-13 17:21:39 +02:00
parent 7285adfea8
commit f999b06444
3 changed files with 13 additions and 28 deletions
+13 -2
View File
@@ -3,7 +3,9 @@
...
}:
let
inherit (inputs) dotfiles home-manager-unstable;
inherit (inputs) home-manager-unstable;
dotfilesHome = "/home/love/dotfiles/home.nix";
hasDotfilesHome = builtins.pathExists dotfilesHome;
in
{
mkHost = {
@@ -42,7 +44,16 @@ in
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "hm-backup";
home-manager.users.love = import "${dotfiles}/home.nix";
home-manager.users.love =
if hasDotfilesHome then
import (/. + dotfilesHome)
else
{
home.username = "love";
home.homeDirectory = "/home/love";
home.stateVersion = "25.11";
programs.home-manager.enable = true;
};
}
] ++ hostModules;
};