vno1-op5p: enable deployments and passwords
This commit is contained in:
parent
19a44dc1d2
commit
a760f95d0f
2
data.nix
2
data.nix
@ -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];
|
||||
|
12
flake.nix
12
flake.nix
@ -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 = {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user