mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: use stage1 systemd (and enable initrd sshd on ward)
This commit is contained in:
parent
20adc139f8
commit
c26b5d3c89
6 changed files with 40 additions and 45 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
../common/core
|
||||
../common/hardware/intel.nix
|
||||
#../common/initrd-ssh.nix
|
||||
../common/initrd-ssh.nix
|
||||
../common/efi.nix
|
||||
../common/zfs.nix
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
./net.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "r8169"];
|
||||
|
||||
#services.authelia.instances.main = {
|
||||
# enable = true;
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
in {
|
||||
networking.hostId = nodeSecrets.networking.hostId;
|
||||
|
||||
boot.initrd.systemd.network = {
|
||||
enable = true;
|
||||
networks = {inherit (config.systemd.network.networks) "10-wan";};
|
||||
};
|
||||
|
||||
systemd.network.networks = {
|
||||
"10-lan" = {
|
||||
address = [net.lan.ipv4cidr net.lan.ipv6cidr];
|
||||
|
@ -39,18 +44,8 @@ in {
|
|||
|
||||
networking.nftables.firewall = {
|
||||
zones = lib.mkForce {
|
||||
lan = {
|
||||
interfaces = ["lan"];
|
||||
#ipv4Addresses = [(cidr.canonicalize net.lan.ipv4cidr)];
|
||||
#ipv6Addresses = [(cidr.canonicalize net.lan.ipv6cidr)];
|
||||
};
|
||||
wan = {
|
||||
interfaces = ["wan"];
|
||||
# TODO ipv4Addresses = [ net.wan.netv4 ];
|
||||
# TODO ipv6Addresses = [ net.wan.netv6 ];
|
||||
#ipv4Addresses = ["192.168.1.0/22"];
|
||||
#ipv6Addresses = ["fd00::/64"];
|
||||
};
|
||||
lan.interfaces = ["lan"];
|
||||
wan.interfaces = ["wan"];
|
||||
};
|
||||
|
||||
rules = lib.mkForce {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue