Some more fw16 fixes

This commit is contained in:
Tristan D. 2024-06-20 20:47:43 +02:00
parent 0efa653058
commit ea9ef50418
Signed by: tristan
SSH key fingerprint: SHA256:WtyH40TFEIklkqijla5j9zqbuMV3mE/vC9DA/xVbJZA
2 changed files with 34 additions and 37 deletions

View file

@ -74,10 +74,8 @@
extraModulePackages = [ ]; extraModulePackages = [ ];
}; };
services.btrfs.autoScrub.enable = true;
networking = { networking = {
hostName = "nixos-f16"; hostName = "nixos-fw16";
extraHosts = '' extraHosts = ''
192.168.0.75 monitor.oekonzept.de 192.168.0.75 monitor.oekonzept.de
192.168.0.151 rosa.oekonzept.de 192.168.0.151 rosa.oekonzept.de
@ -100,7 +98,7 @@
176.9.242.147 fe3f3294-c93a-4aca-895e-abe6c858dbd5-llama-cpp.redvau.lt 176.9.242.147 fe3f3294-c93a-4aca-895e-abe6c858dbd5-llama-cpp.redvau.lt
''; '';
interfaces = { interfaces = {
enp5s0f4u1u1c2 = { eth0 = {
useDHCP = false; useDHCP = false;
ipv4.addresses = [ ipv4.addresses = [
{ {
@ -128,15 +126,15 @@
# This manually configures the automatically created network-adresses service to be more flexible # This manually configures the automatically created network-adresses service to be more flexible
# regarding booting without the the device being available on boot # regarding booting without the the device being available on boot
# It prevents slow timeouts & errors on boot while preserving Plug & Play ability # It prevents slow timeouts & errors on boot while preserving Plug & Play ability
network-addresses-enp5s0f4u1u1c2.unitConfig = { network-addresses-eth0.unitConfig = {
ConditionPathExists = "/sys/class/net/enp5s0f4u1u1c2"; ConditionPathExists = "/sys/class/net/eth0";
BindsTo = lib.mkForce null; BindsTo = lib.mkForce null;
}; };
}; };
}; };
services.udev.extraRules = '' services.udev.extraRules = ''
ACTION=="add", KERNEL=="enp5s0f4u1u1c2", TAG+="systemd", ENV{SYSTEMD_WANTS}="network-addresses-enp5s0f4u1u1c2.service" ACTION=="add", KERNEL=="eth0", TAG+="systemd", ENV{SYSTEMD_WANTS}="network-addresses-eth0.service"
ACTION=="remove", KERNEL=="enp5s0f4u1u1c2", RUN+="${pkgs.systemd}/bin/systemctl stop network-addresses-enp5s0f4u1u1c2.service" ACTION=="remove", KERNEL=="eth0", RUN+="${pkgs.systemd}/bin/systemctl stop network-addresses-eth0.service"
SUBSYSTEM=="pci", ATTR{power/control}="auto" SUBSYSTEM=="pci", ATTR{power/control}="auto"
ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled" ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled"
''; '';

View file

@ -6,7 +6,6 @@
, inputs , inputs
, ... , ...
}: { }: {
# bcachefs format \ # bcachefs format \
# --metadata_replicas=2 \ # --metadata_replicas=2 \
# --data_replicas=1 \ # --data_replicas=1 \
@ -18,8 +17,10 @@
boot = { boot = {
supportedFilesystems = [ "bcachefs" "vfat" ]; supportedFilesystems = [ "bcachefs" "vfat" ];
initrd.supportedFilesystems = [ "bcachefs" "vfat" ]; initrd.supportedFilesystems = [ "bcachefs" "vfat" ];
initrd.luks.devices = lib.attrsets.mergeAttrsList initrd.luks.devices =
(lib.lists.forEach [ lib.attrsets.mergeAttrsList
(
lib.lists.forEach [
"crypt_ssd_4t_data" "crypt_ssd_4t_data"
"crypt_ssd_4t_swap" "crypt_ssd_4t_swap"
"crypt_ssd_2t_data" "crypt_ssd_2t_data"
@ -52,15 +53,13 @@
]; ];
in in
{ {
"/" = "/" = {
{ device = "/dev/mapper/crypt_ssd_4t_data";
device = "UUID=f89215ba-3313-42d3-8f68-051ad2453870";
fsType = "bcachefs"; fsType = "bcachefs";
options = [ "relatime" ]; options = [ "relatime" ];
}; };
"/boot" = "/boot" = {
{
device = "/dev/disk/by-uuid/05A2-6A8A"; device = "/dev/disk/by-uuid/05A2-6A8A";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];