parent
1baff01642
commit
d7c1d539ff
13
flake.nix
13
flake.nix
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue