fix: properly inherit stateVersion on home-manager configs

This commit is contained in:
oddlama 2023-05-01 15:27:56 +02:00
parent de19b23d3d
commit 5d8a60b4d8
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 14 additions and 5 deletions

View file

@ -2,6 +2,7 @@
config,
lib,
pkgs,
stateVersion,
...
}:
with lib; {
@ -16,7 +17,10 @@ with lib; {
../common
];
home.username = config.users.users.root.name;
home.uid = config.users.users.root.uid;
home = {
inherit stateVersion;
inherit (config.users.users.root) uid;
username = config.users.users.root.name;
};
};
}