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://nix-community.github.io/home-manager/index.html#sec-flakes-nixos-module
|
||||||
# https://nixos.wiki/wiki/Home_Manager
|
# https://nixos.wiki/wiki/Home_Manager
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@
|
||||||
|
|
||||||
users.caspervk = {
|
users.caspervk = {
|
||||||
# Define the user and path Home Manager should manage
|
# Define the user and path Home Manager should manage
|
||||||
home = {
|
home = with config.users.users; {
|
||||||
username = "caspervk";
|
username = caspervk.name;
|
||||||
homeDirectory = "/home/caspervk";
|
homeDirectory = caspervk.home;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Let Home Manager install and manage itself
|
# Let Home Manager install and manage itself
|
||||||
|
|
Loading…
Reference in a new issue