1
0
Fork 0

fix(home): setup proper path with config variables

This commit is contained in:
Philipp 2025-05-31 15:48:07 +02:00
parent af1f017749
commit 8deea88d1f
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
4 changed files with 8 additions and 3 deletions

View file

@ -4,6 +4,10 @@
...
}:
{
home.stateVersion = lib.mkDefault (osConfig.system.stateVersion or "24.11");
home = {
username = "philipp";
homeDirectory = "/home/philipp";
stateVersion = lib.mkDefault (osConfig.system.stateVersion or "24.11");
};
}

View file

@ -14,6 +14,7 @@ in
enable = mkBoolOpt false "Whether or not to enable neovim.";
};
config = mkIf cfg.enable {
environment.variables.EDITOR = "nvim";
programs.nvf = {
enable = true;
settings = {

View file

@ -19,7 +19,7 @@ in
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/philipp/Documents/nix-config";
flake = "${config.home-manager.users.philipp.home.homeDirectory}/Documents/nix-config";
};
};

View file

@ -18,7 +18,7 @@ in
};
config = mkIf cfg.enable {
sops.age.keyFile = "/home/philipp/.config/sops/age/keys.txt";
sops.age.keyFile = "${config.users.users.philipp.home}/.config/sops/age/keys.txt";
};
}