fix: kuma and improve deployment logging

This commit is contained in:
Jermeiah S 2025-06-19 15:52:56 -04:00
parent 62c440f78a
commit bb141b7a71
No known key found for this signature in database
4 changed files with 21 additions and 8 deletions

View file

@ -14,9 +14,11 @@ let
# inherit (self.hosts.${hostName}) address hostPlatform remoteBuild;
# inherit (deploy-rs.lib.${hostPlatform}) activate;
system = self.nixosConfigurations."${hostName}".pkgs.system;
address = self.nixosConfigurations."${hostName}".config.deploy.address;
in
{
hostname = hostName;
# inherit address;
hostname = address;
profiles.system.path = deploy-rs.lib.${system}.activate.nixos self.nixosConfigurations.${hostName};
};
in

View file

@ -1,10 +1,17 @@
_: {
services.openssh.enable = true;
security = {
sudo.execWheelOnly = true;
pam = {
sshAgentAuth.enable = true;
services.sudo.sshAgentAuth = true;
{ lib, config, ... }:
{
options.deploy.address = lib.mkOption {
type = lib.types.str;
default = config.networking.hostName;
};
config = {
services.openssh.enable = true;
security = {
sudo.execWheelOnly = true;
pam = {
sshAgentAuth.enable = true;
services.sudo.sshAgentAuth = true;
};
};
};
}