~ruther/nixos-config

ref: 059298edced90601d6825f13e62b1b320ca1183f nixos-config/nixos/isos/common/users.nix -rw-r--r-- 420 bytes
059298ed — Frantisek Bohacek chore: adapt to new cursor theme name 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