golgi/modules/admin.nix

14 lines
431 B
Nix
Raw Normal View History

2022-07-29 15:42:48 +00:00
{ config, pkgs, ... }:
{
users.users.admin = {
name = "admin";
initialPassword = "1234";
isNormalUser = true;
extraGroups = [ "wheel" ];
2022-07-29 17:25:12 +00:00
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOZZqcJOLdN+QFHKyW8ST2zz750+8TdvO9IT5geXpQVt tec@tranquillity" ];
2022-07-29 15:42:48 +00:00
};
security.sudo.wheelNeedsPassword = false;
nix.trustedUsers = [ "@wheel" ]; # https://github.com/serokell/deploy-rs/issues/25
}