diff --git a/home/profile.nix b/home/profile.nix index de542335..d65672f8 100644 --- a/home/profile.nix +++ b/home/profile.nix @@ -13,6 +13,11 @@ in { default = null; description = "uid passthrough to base user configuration"; }; + description = mkOption { + type = with types; nullOr str; + default = null; + description = "description passthrough to base user configuration"; + }; admin = mkOption { type = with types; bool; default = false; @@ -61,6 +66,7 @@ in { users = { users = mapAttrs (name: opts: { inherit (opts) uid; + description = with opts; mkIf (description != null) description; extraGroups = mkIf opts.admin cfg.adminGroups; openssh.authorizedKeys.keys = mkIf (opts.sshLogin && config.services.openssh.enable) config.faucet.auth.openssh.publicKeys; diff --git a/home/user.nix b/home/user.nix index d53a87b0..82342a93 100644 --- a/home/user.nix +++ b/home/user.nix @@ -1,7 +1,17 @@ { users.profiles = { - koishi = { uid = 1300; admin = true; sshLogin = true; }; # 0x514 = 1300 :) - staging.uid = 1000; + koishi = { + uid = 1300; # 0x514 = 1300 :) + description = "Koishi"; + admin = true; + sshLogin = true; + }; + + staging = { + uid = 1000; + description = "Staging Environment"; + }; + root.uid = 0; }; }