forked from mirrors_public/oddlama_nix-config
feat: remove old "freeform" globals and use new structured globals
This commit is contained in:
parent
4e717fab96
commit
a128dd5f40
35 changed files with 214 additions and 59 deletions
|
@ -1,17 +1,18 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
globals,
|
||||
pkgs,
|
||||
minimal,
|
||||
...
|
||||
}: let
|
||||
myuser = config.repo.secrets.global.myuser.name;
|
||||
myuser = globals.myuser.name;
|
||||
in
|
||||
lib.optionalAttrs (!minimal) {
|
||||
users.groups.${myuser}.gid = config.users.users.${myuser}.uid;
|
||||
users.users.${myuser} = {
|
||||
uid = 1000;
|
||||
inherit (config.repo.secrets.global.myuser) hashedPassword;
|
||||
inherit (globals.myuser) hashedPassword;
|
||||
createHome = true;
|
||||
group = myuser;
|
||||
extraGroups = ["wheel" "input" "video"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue