diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-19 12:09:12 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-20 09:43:31 -0500 |
| commit | 80571337a8a21822449d1ca222677b3a6242ece4 (patch) | |
| tree | 1017e0f601280340f7bc7ec854dfb27bb25ae094 /hosts | |
| parent | 57115992c740e72fe4767f1b9b5e5d2921e884ef (diff) | |
just deploy as root (we're using safe ssh keys anyway)
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/ganymede/config.nix | 1 | ||||
| -rw-r--r-- | hosts/ganymede/nixos.nix | 26 |
2 files changed, 1 insertions, 26 deletions
diff --git a/hosts/ganymede/config.nix b/hosts/ganymede/config.nix index bd990e8..6fe1e3e 100644 --- a/hosts/ganymede/config.nix +++ b/hosts/ganymede/config.nix @@ -64,6 +64,7 @@ { port = 22; listenAddr = "0.0.0.0"; + rootLogin = true; } ]; }; diff --git a/hosts/ganymede/nixos.nix b/hosts/ganymede/nixos.nix index 043f67a..a2314ee 100644 --- a/hosts/ganymede/nixos.nix +++ b/hosts/ganymede/nixos.nix @@ -59,32 +59,6 @@ }; }; - # deploy user - nix.settings.trusted-users = ["deploy"]; - users.groups."deploy" = {}; - users.users."deploy" = { - isSystemUser = true; - group = "deploy"; - shell = pkgs.bash; - - openssh.authorizedKeys.keys = config.users.users."collin".openssh.authorizedKeys.keys; - }; - security.sudo.extraRules = [ - { - users = ["deploy"]; - commands = [ - { - command = "/nix/store/*/bin/switch-to-configuration"; - options = ["NOPASSWD"]; - } - { - command = "/run/current-system/sw/bin/shutdown"; - options = ["NOPASSWD"]; - } - ]; - } - ]; - services.fail2ban.enable = true; programs.ssh.extraConfig = '' |
