forked from mirrors_public/oddlama_nix-config
chore: use agenix, enable initrd networking
This commit is contained in:
parent
855bff0a6f
commit
b68021b3a4
8 changed files with 79 additions and 83 deletions
|
@ -46,7 +46,8 @@ in {
|
|||
};
|
||||
|
||||
networking = {
|
||||
useDHCP = lib.mkForce false;
|
||||
# FIXME: would like to use mkForce false for useDHCP, but nixpkgs#215908 blocks that.
|
||||
useDHCP = true;
|
||||
useNetworkd = true;
|
||||
wireguard.enable = true;
|
||||
dhcpcd.enable = false;
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
{
|
||||
config,
|
||||
name,
|
||||
...
|
||||
}: {
|
||||
rekey.secrets.initrd_host_ed25519_key.file = ../../hosts/${name}/initrd_host_ed25519_key.age;
|
||||
|
||||
boot.initrd.network.enable = true;
|
||||
boot.initrd.network.ssh = {
|
||||
enable = true;
|
||||
port = 4;
|
||||
hostKeys = [config.rekey.secrets.initrd_host_ed25519_key.path];
|
||||
};
|
||||
|
||||
services.sshd.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue