aboutsummaryrefslogtreecommitdiff
path: root/hosts/ganymede/nixos.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-19 12:09:12 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-20 09:43:31 -0500
commit80571337a8a21822449d1ca222677b3a6242ece4 (patch)
tree1017e0f601280340f7bc7ec854dfb27bb25ae094 /hosts/ganymede/nixos.nix
parent57115992c740e72fe4767f1b9b5e5d2921e884ef (diff)
just deploy as root (we're using safe ssh keys anyway)
Diffstat (limited to 'hosts/ganymede/nixos.nix')
-rw-r--r--hosts/ganymede/nixos.nix26
1 files changed, 0 insertions, 26 deletions
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 = ''