refactor
This commit is contained in:
parent
a26d10f353
commit
406fb69029
1 changed files with 6 additions and 6 deletions
|
@ -3,23 +3,23 @@
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
user = secrets.users;
|
users = secrets.users;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users = {
|
users.users = {
|
||||||
root = {
|
root = {
|
||||||
inherit (user.root) hashedPassword;
|
inherit (users.root) hashedPassword;
|
||||||
};
|
};
|
||||||
"${user.primary.userName}" = {
|
"${users.primary.userName}" = {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
inherit (user.primary) hashedPassword;
|
inherit (users.primary) hashedPassword;
|
||||||
description = user.primary.realName;
|
description = users.primary.realName;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
|
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
user.primary.sshPublicKey
|
users.primary.sshPublicKey
|
||||||
secrets.phone.sshPublicKey
|
secrets.phone.sshPublicKey
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue