blob: 58e496ef762a4a515ee4ac43e2f1153d6f2d85ae (
plain)
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
|
{config, pkgs, lib, ... }: {
# Define a user account. Don't forget to set a password with ‘passwd’.
users = {
mutableUsers = false;
users.defin = {
isNormalUser = true;
description = "Devin Finlinson";
extraGroups = [ "wheel" "builders" "video" "input"]; # Enable ‘sudo’ for the user.
shell = pkgs.nushell;
hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0";
openssh.authorizedKeys.keyFiles = [
(builtins.fetchurl {
url = "https://gitlab.com/dFinlinson.keys";
sha256 = "05mmvw190j6dp756bsqp3ssjyv2hq6r8cpc03wzvzgf2bhdg4dvb";
})
];
};
};
# Allow to run nix
nix.settings.allowed-users = [ "defin" ];
}
|