golgi/modules/admin.nix

15 lines
590 B
Nix
Raw Permalink Normal View History

2022-07-29 15:42:48 +00:00
{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 22 ];
2022-07-29 15:42:48 +00:00
users.users.admin = {
name = "admin";
2022-09-04 18:30:53 +00:00
hashedPassword = "$6$ET8BLqODvw77VOmI$oun2gILUqBr/3WonH2FO1L.myMIM80KeyO5W1GrYhJTo./jk7XcG8B3vEEcbpfx3R9h.sR0VV187/MgnsnouB1";
2022-07-29 15:42:48 +00:00
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;
2023-06-24 06:39:32 +00:00
nix.settings.trusted-users = [ "@wheel" ]; # https://github.com/serokell/deploy-rs/issues/25
2022-07-29 15:42:48 +00:00
}