vno1-op5p: enable deployments and passwords

This commit is contained in:
Motiejus Jakštys 2024-03-10 14:40:08 +02:00
parent 19a44dc1d2
commit a760f95d0f
3 changed files with 20 additions and 8 deletions

View File

@ -64,7 +64,9 @@ rec {
jakstIP = "100.89.176.4"; jakstIP = "100.89.176.4";
}; };
"vno1-op5p.servers.jakst" = rec { "vno1-op5p.servers.jakst" = rec {
extraHostNames = [vno1IP];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGy9/qixhcPLeVNJIvN7n32bk8gnq3wqwYFM4SWqgdLb root@op5p"; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGy9/qixhcPLeVNJIvN7n32bk8gnq3wqwYFM4SWqgdLb root@op5p";
vno1IP = "192.168.189.12";
}; };
"vno3-rp3b.servers.jakst" = rec { "vno3-rp3b.servers.jakst" = rec {
extraHostNames = [jakstIP]; extraHostNames = [jakstIP];

View File

@ -307,6 +307,18 @@
}; };
}; };
vno1-op5p = {
hostname = myData.hosts."vno1-op5p.servers.jakst".vno1IP;
profiles = {
system = {
sshUser = "motiejus";
path =
self.nixosConfigurations.vno3-rp3b.pkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.vno3-rp3b;
user = "root";
};
};
};
vno3-rp3b = { vno3-rp3b = {
hostname = myData.hosts."vno3-rp3b.servers.jakst".jakstIP; hostname = myData.hosts."vno3-rp3b.servers.jakst".jakstIP;
profiles = { profiles = {

View File

@ -47,20 +47,18 @@ in {
base.users = { base.users = {
enable = true; enable = true;
#root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path; root.hashedPasswordFile = config.age.secrets.root-passwd-hash.path;
#user.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path; user.hashedPasswordFile = config.age.secrets.motiejus-passwd-hash.path;
user.initialPassword = "live";
root.initialPassword = "live";
}; };
services = { services = {
node_exporter.enable = true; node_exporter.enable = true;
}; };
#services.postfix = { services.postfix = {
# enable = true; enable = true;
# saslPasswdPath = config.age.secrets.sasl-passwd.path; saslPasswdPath = config.age.secrets.sasl-passwd.path;
#}; };
}; };
services.pcscd.enable = true; services.pcscd.enable = true;