using dynamic vars now

This commit is contained in:
Semere Meharena Mebrahtom 2026-07-18 21:11:44 +02:00
parent 168633cf07
commit edbbc0dbc2
Signed by: semere
GPG key ID: 7FC937214DF30488
5 changed files with 21 additions and 15 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, userVars, ... }:
let
cfg = config.dotfiles.user;
@ -9,7 +9,7 @@ in
};
config = lib.mkIf cfg.enable {
users.users.semere = {
users.users."${userVars.username}" = {
isNormalUser = true;
extraGroups = [
"wheel"
@ -17,9 +17,9 @@ in
];
};
home-manager.users.semere = {
home.username = "semere";
home.homeDirectory = "/home/semere";
home-manager.users."${userVars.username}" = {
home.username = userVars.username;
home.homeDirectory = "/home/${userVars.username}";
home.stateVersion = "26.05";
};
};