vno1-op5p: enable deployments and passwords

main
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";
};
"vno1-op5p.servers.jakst" = rec {
extraHostNames = [vno1IP];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGy9/qixhcPLeVNJIvN7n32bk8gnq3wqwYFM4SWqgdLb root@op5p";
vno1IP = "192.168.189.12";
};
"vno3-rp3b.servers.jakst" = rec {
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 = {
hostname = myData.hosts."vno3-rp3b.servers.jakst".jakstIP;
profiles = {

View File

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