move dotfiles flake
This commit is contained in:
+13
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user