fix(home): setup proper path with config variables
This commit is contained in:
parent
af1f017749
commit
8deea88d1f
4 changed files with 8 additions and 3 deletions
|
@ -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");
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue