-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
46 lines (43 loc) · 1.02 KB
/
default.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
{
hmUsers,
pkgs,
...
}: {
home-manager.users = {
inherit (hmUsers) roberto;
};
imports = [./theme.nix];
# NOTE in case you need to change the UID
# 1. Log in as root
# 2. Edit this file to change the uid field
# 3. Edit /etc/passwd to change the uid of the user
# 4. Run chown -Rhc --from=$old_uid $new_uid /
# 5. Rebuild configuration
users.users.roberto = {
description = "Roberto Di Remigio Eikås";
isNormalUser = true;
home = "/home/roberto";
uid = 1000;
createHome = true;
hashedPassword = "$6$YoVa.tQqReqjgAav$KJ3u/TyGtsAiIpAqXbFqtRKjltfKsx5A5GSJLzP0zxMH1h6SeW.9aYEHB0gzjbgNkK.sIJDxaXdy/BYdLAVZu/";
extraGroups = [
"adm"
"audio"
"disk"
"docker"
"input"
"networkmanager"
# I don't understand why I need to do this _explicitly_
"onepassword"
"onepassword-cli"
"root"
"systemd-journal"
"users"
"vboxusers"
"video"
"wheel"
];
shell = pkgs.fish;
};
programs.fish.enable = true;
}