~ruther/nixos-config

ref: 38ce94f0f3f51277d0772c9995a1dc955f704c0e nixos-config/nixos/isos/common/users.nix -rw-r--r-- 459 bytes
38ce94f0 — Frantisek Bohacek feat: add dwl iso image 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
23
24
{ config, lib, ... }:

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

  config = {
    usersList = [ "root" "nixos" "ruther" ];

    users.users = lib.mkMerge [
      (lib.genAttrs config.usersList (name: {
        extraGroups = [ "input" ];
      }))
      {
        ruther = {
          isNormalUser = true;
          extraGroups = [ "wheel" ];
          initialHashedPassword = "";
        };
      }
    ];
  };
}
Do not follow this link