Clean up
This commit is contained in:
parent
56b5e17d9c
commit
c60c1019d2
1 changed files with 19 additions and 17 deletions
|
@ -4,24 +4,26 @@ let
|
||||||
in {
|
in {
|
||||||
# Define a user account.
|
# Define a user account.
|
||||||
imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix;
|
imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix;
|
||||||
users.mutableUsers = false;
|
|
||||||
users.users.albert = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Albert J. Copeland";
|
|
||||||
# video is required for the "light" command to work
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ]
|
|
||||||
++ ifExists [ "video" ]
|
|
||||||
++ ifExists [ "docker" ];
|
|
||||||
# mkpasswd -m sha-512
|
|
||||||
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";
|
|
||||||
packages = [ pkgs.home-manager ];
|
|
||||||
openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/keys.txt ];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups.albert = {
|
users = {
|
||||||
gid = 1000;
|
mutableUsers = false;
|
||||||
name = "albert";
|
users.albert = {
|
||||||
members = [ "albert" ];
|
isNormalUser = true;
|
||||||
|
description = "Albert J. Copeland";
|
||||||
|
# video is required for the "light" command to work
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ]
|
||||||
|
++ ifExists [ "video" ]
|
||||||
|
++ ifExists [ "docker" ];
|
||||||
|
# mkpasswd -m sha-512
|
||||||
|
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";
|
||||||
|
packages = [ pkgs.home-manager ];
|
||||||
|
openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/keys.txt ];
|
||||||
|
};
|
||||||
|
groups.albert = {
|
||||||
|
gid = 1000;
|
||||||
|
name = "albert";
|
||||||
|
members = [ "albert" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Make this user trusted
|
# Make this user trusted
|
||||||
|
|
Loading…
Reference in a new issue