Don't hardcode home path

This commit is contained in:
Casper V. Kristensen 2023-08-12 02:27:52 +02:00
parent fadadea7bf
commit 9b23b9a610

View file

@ -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