~ruther/nixos-config

ref: 75b58bc61096b0104f432f0a690631c3a4321328 nixos-config/nixos/isos/common/users.nix -rw-r--r-- 459 bytes
75b58bc6 — Frantisek Bohacek chore: remove dbus debug files, enable it only for qtile 9 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