mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
fix: properly inherit stateVersion on home-manager configs
This commit is contained in:
parent
de19b23d3d
commit
5d8a60b4d8
3 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
stateVersion,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./modules/uid.nix
|
||||
|
||||
|
@ -16,7 +20,6 @@
|
|||
];
|
||||
|
||||
home = {
|
||||
inherit stateVersion;
|
||||
packages = with pkgs; [
|
||||
bandwhich
|
||||
btop
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
lib,
|
||||
pkgs,
|
||||
secrets,
|
||||
stateVersion,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
|
@ -31,8 +32,9 @@ in {
|
|||
];
|
||||
|
||||
home = {
|
||||
username = config.users.users.${myuser}.name;
|
||||
inherit stateVersion;
|
||||
inherit (config.users.users.${myuser}) uid;
|
||||
username = config.users.users.${myuser}.name;
|
||||
shellAliases = {
|
||||
p = "cd ~/projects";
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue