mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
using dynamic vars now
This commit is contained in:
parent
168633cf07
commit
edbbc0dbc2
5 changed files with 21 additions and 15 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue