~ruther/nixos-config

ref: 29359bf62e26f7a4139ee778d5cf8aaae5b445b1 nixos-config/nixos/isos/common/users.nix -rw-r--r-- 420 bytes
29359bf6 — Frantisek Bohacek feat: add gnome iso installatiom image config 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, ... }:

{
  options.usersList = lib.mkOption {
    type = lib.types.listOf lib.types.str;
  };

  config = {
    usersList = [ "root" "nixos" "ruther" ];
    # usersList = lib.attrNames config.users.users? infrec?

    users.users = lib.mkMerge [
      {
        ruther = {
          isNormalUser = true;
          extraGroups = [ "wheel" ];
          initialHashedPassword = "";
        };
      }
    ];
  };
}
Do not follow this link