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,6 +14,7 @@ in
|
|||
self.nixosModules.default
|
||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||
];
|
||||
deploy.address = "200:b938:d405:92df:a6e:1ffd:5213:26b";
|
||||
services = {
|
||||
tty-ips.enable = true;
|
||||
uptime-kuma = {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ in
|
|||
self.nixosModules.default
|
||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||
];
|
||||
deploy = {
|
||||
address = "200:1978:6503:e6f0:2dbe:11fd:74b:ff64";
|
||||
};
|
||||
sops.secrets = {
|
||||
otfenv = {
|
||||
owner = "otf";
|
||||
|
|
|
|||
|
|
@ -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,4 +1,10 @@
|
|||
_: {
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
options.deploy.address = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.networking.hostName;
|
||||
};
|
||||
config = {
|
||||
services.openssh.enable = true;
|
||||
security = {
|
||||
sudo.execWheelOnly = true;
|
||||
|
|
@ -7,4 +13,5 @@ _: {
|
|||
services.sudo.sshAgentAuth = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue