parent
1baff01642
commit
d7c1d539ff
|
@ -20,12 +20,17 @@
|
||||||
modules = [ ./hosts/logos ./hardware/alrest ];
|
modules = [ ./hosts/logos ./hardware/alrest ];
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy.nodes.some-random-system.profiles.system = {
|
deploy.nodes.logos = {
|
||||||
hostname = "192.168.2.35";
|
hostname = "192.168.2.35";
|
||||||
|
sshUser = "root";
|
||||||
|
fastConnection = true;
|
||||||
|
|
||||||
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||||
self.nixosConfigurations.logos;
|
self.nixosConfigurations.logos;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# This is highly advised, and will prevent many possible mistakes
|
# This is highly advised, and will prevent many possible mistakes
|
||||||
checks = builtins.mapAttrs
|
checks = builtins.mapAttrs
|
||||||
|
|
|
@ -1,26 +1,5 @@
|
||||||
{ config, ... }:
|
{ 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;
|
services.nfs.server.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue