Don't hardcode home path
This commit is contained in:
parent
fadadea7bf
commit
9b23b9a610
|
@ -1,4 +1,4 @@
|
|||
{ home-manager, ... }: {
|
||||
{ config, home-manager, ... }: {
|
||||
# https://nix-community.github.io/home-manager/index.html#sec-flakes-nixos-module
|
||||
# https://nixos.wiki/wiki/Home_Manager
|
||||
|
||||
|
@ -15,9 +15,9 @@
|
|||
|
||||
users.caspervk = {
|
||||
# Define the user and path Home Manager should manage
|
||||
home = {
|
||||
username = "caspervk";
|
||||
homeDirectory = "/home/caspervk";
|
||||
home = with config.users.users; {
|
||||
username = caspervk.name;
|
||||
homeDirectory = caspervk.home;
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself
|
||||
|
|
Loading…
Reference in a new issue