make logos work

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-12-21 17:02:29 -05:00
parent 1baff01642
commit d7c1d539ff
2 changed files with 9 additions and 25 deletions

View File

@ -20,11 +20,16 @@
modules = [ ./hosts/logos ./hardware/alrest ];
};
deploy.nodes.some-random-system.profiles.system = {
deploy.nodes.logos = {
hostname = "192.168.2.35";
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.logos;
sshUser = "root";
fastConnection = true;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.logos;
};
};
# This is highly advised, and will prevent many possible mistakes

View File

@ -1,26 +1,5 @@
{ config, ... }:
{
boot = {
initrd = {
kernelModules = [ "r8169" ];
network = {
enable = true;
ssh = {
enable = true;
port = 2222;
authorizedKeys = config.users.users.cadey.openssh.authorizedKeys.keys;
hostKeys = [
"/etc/secrets/initrd/ssh_host_rsa_key"
"/etc/secrets/initrd/ssh_host_ed25519_key"
];
};
postCommands = ''
echo "zfs load-key -a; killall zfs" >> /root/.profile
'';
};
};
};
services.nfs.server.enable = true;
}