-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.nix
48 lines (45 loc) · 970 Bytes
/
users.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
personal_info,
pkgs,
...
}: {
users = {
defaultUserShell = pkgs.nushell;
groups.plugdev = {};
users.${personal_info.login} = {
isNormalUser = true;
description = personal_info.name;
extraGroups = ["networkmanager" "wheel" "input" "video" "dialout" "plugdev"];
};
};
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet -r --asterisks --time --cmd sway";
user = "greeter";
};
initial_session = {
command = "sway";
user = personal_info.login;
};
};
};
security = {
pam.services.swaylock = {};
sudo = {
enable = true;
extraRules = [
{
commands = [
{
command = "/run/current-system/sw/bin/nix*";
options = ["NOPASSWD"];
}
];
groups = ["wheel"];
}
];
};
};
}