diff --git a/data.nix b/data.nix index 6fea4fc..bc07da8 100644 --- a/data.nix +++ b/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]; diff --git a/flake.nix b/flake.nix index 866c6d8..8b8dc62 100644 --- a/flake.nix +++ b/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 = { diff --git a/hosts/vno1-op5p/configuration.nix b/hosts/vno1-op5p/configuration.nix index cd36254..91263b3 100644 --- a/hosts/vno1-op5p/configuration.nix +++ b/hosts/vno1-op5p/configuration.nix @@ -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;