fix: kuma and improve deployment logging
This commit is contained in:
parent
62c440f78a
commit
bb141b7a71
4 changed files with 21 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue