From fcb86e0709d0d9466e239c4aa9387c9d57ed866a Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 30 Nov 2025 21:32:18 +1100 Subject: [PATCH] Revert "users: add deploy" This reverts commit cded5bfdf7df57e7215ef37ca41b29468f2c4d61. --- flake.nix | 1 - modules/users/deploy.nix | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100644 modules/users/deploy.nix diff --git a/flake.nix b/flake.nix index aa3ec5c..3e79ba0 100644 --- a/flake.nix +++ b/flake.nix @@ -50,7 +50,6 @@ ./modules/users/nico.nix ./modules/users/alex.nix - ./modules/users/deploy.nix ./modules/hardware/secureboot.nix lanzaboote.nixosModules.lanzaboote diff --git a/modules/users/deploy.nix b/modules/users/deploy.nix deleted file mode 100644 index 9af6eb4..0000000 --- a/modules/users/deploy.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ config, lib, pkgs, ...}: - -{ - users.users.deploy = { - isNormalUser = true; - home = "/var/empty"; - group = "deploy"; - }; - - users.groups.deploy = {}; - - users.users.deploy.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXwl+UyfeN/9M/z21mlVS3guYEqIjtgAf5pCPkjXhR0" - ]; - - security.sudo.extraRules = [ - { - users = [ "deploy" ]; - runAs = "root"; - commands = [ - { - command = "ALL"; - options = [ "NOPASSWD" ]; - } - ]; - } - ]; -}