~ruther/nixos-config

ref: 0539e435369cb081c893794a21ab0d40eed87f30 nixos-config/nixos/isos/common/users.nix -rw-r--r-- 459 bytes
0539e435 — Frantisek Bohacek feat: remove wlroots and wayland overriden packages 8 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