forked from mirrors_public/oddlama_nix-config
feat: modularize hetzner-cloud and odroid-n2plus hardware
This commit is contained in:
parent
61d582f033
commit
6672846d59
11 changed files with 79 additions and 35 deletions
|
@ -5,6 +5,8 @@
|
|||
}: {
|
||||
imports = [
|
||||
../common/core
|
||||
../common/hardware/hetzner-cloud.nix
|
||||
../common/bios-boot.nix
|
||||
../common/initrd-ssh.nix
|
||||
../common/zfs.nix
|
||||
|
||||
|
@ -13,11 +15,5 @@
|
|||
./nginx.nix
|
||||
];
|
||||
|
||||
boot.loader.timeout = lib.mkDefault 2;
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = false;
|
||||
devices = ["/dev/disk/by-id/${config.repo.secrets.local.disk.main}"];
|
||||
};
|
||||
console.earlySetup = true;
|
||||
boot.loader.grub.devices = ["/dev/disk/by-id/${config.repo.secrets.local.disk.main}"];
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
extraLib,
|
||||
pkgs,
|
||||
...
|
||||
|
@ -40,6 +39,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
|
||||
# After importing the rpool, rollback the root system to be empty.
|
||||
|
|
|
@ -20,6 +20,15 @@
|
|||
icfg.hostCidrv6
|
||||
];
|
||||
gateway = ["fe80::1"];
|
||||
routes = [
|
||||
{routeConfig = {Destination = "172.31.1.1";};}
|
||||
{
|
||||
routeConfig = {
|
||||
Gateway = "172.31.1.1";
|
||||
GatewayOnLink = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
matchConfig.MACAddress = icfg.mac;
|
||||
networkConfig.IPv6PrivacyExtensions = "yes";
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
|
|
1
hosts/sentinel/secrets/host.pub
Normal file
1
hosts/sentinel/secrets/host.pub
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgdSxSAnqaIqpr7OhyaKXGfQLUWf2bkpyF2mSG01LVv
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue