diff --git a/nixos/common/colmena.nix b/nixos/common/colmena.nix index adb8dff..6f43a0f 100644 --- a/nixos/common/colmena.nix +++ b/nixos/common/colmena.nix @@ -1,50 +1,53 @@ { lib, config, + pkgs, ... -}: let - inherit - (lib) +}: +let + inherit (lib) mkEnableOption mkIf ; username = "colmena-deploy"; -in { +in +{ options.olivia.colmena.enable = mkEnableOption "colmena update user"; config = mkIf config.olivia.colmena.enable { users.users.${username} = { isSystemUser = true; + shell = pkgs.bashInteractive; group = username; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC87Km2/XgeYLt9C164Bo6eCRS5iPaI4hCRLPGo9Nw3b colmena deploy" ]; }; - users.groups.${username} = {}; + users.groups.${username} = { }; security.sudo = { extraRules = [ { - users = [username]; + users = [ username ]; commands = [ { command = "/run/current-system/sw/bin/nix-store --no-gc-warning --realise /nix/store/*"; - options = ["NOPASSWD"]; + options = [ "NOPASSWD" ]; } { command = "/run/current-system/sw/bin/nix-env --profile /nix/var/nix/profiles/system --set /nix/store/*"; - options = ["NOPASSWD"]; + options = [ "NOPASSWD" ]; } { command = "/nix/store/*/bin/switch-to-configuration *"; - options = ["NOPASSWD"]; + options = [ "NOPASSWD" ]; } ]; } ]; }; - nix.settings.trusted-users = [username]; - services.openssh.settings.AllowUsers = [username]; + nix.settings.trusted-users = [ username ]; + services.openssh.settings.AllowUsers = [ username ]; }; } diff --git a/pkgs/default.nix b/pkgs/default.nix index 04fbb20..82b5390 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -3,7 +3,7 @@ in { caddy-augmented = pkgs.caddy.withPlugins { plugins = ["github.com/caddy-dns/porkbun@v0.3.1"]; - hash = "sha256-R1ZqQ8drcBQIH7cLq9kEvdg9Ze3bKkT8IAFavldVeC0="; + hash = "sha256-C+eTduZvOlewyzOxtTqmmWXL2yVqAq/ltq+XrzD1otY="; }; witchhazel = callPackage ./witchhazel.nix {}; diff --git a/result-new b/result-new deleted file mode 100644 index fd8ef8d..0000000 --- a/result-new +++ /dev/null @@ -1 +0,0 @@ -/nix/store/4261nhr08cx4778wq7p49x853gzv3xym-nixos-system-apteryx-26.05.20260204.00c21e4 \ No newline at end of file diff --git a/result-old b/result-old deleted file mode 100644 index a74c3fc..0000000 --- a/result-old +++ /dev/null @@ -1 +0,0 @@ -/nix/store/r07lrdw6pypfy2a9ygwmimpmv0nmisc8-nixos-system-apteryx-26.05.20260204.00c21e4 \ No newline at end of file