Simplify Midas and move virtual raid config to system wide filesystems conf

This commit is contained in:
Bun 2025-04-04 13:42:40 -04:00
parent 2d61e291a9
commit 06f1990997
5 changed files with 12 additions and 12 deletions

View file

@ -2,10 +2,6 @@
{
boot = {
kernelPackages = pkgs.linuxPackages_hardened;
swraid = {
enable = true;
mdadmConf = "MAILADDR contact@nixfox.ca";
};
lanzaboote.enable = true;
};
}

View file

@ -8,7 +8,7 @@
options = [ "subvol=persist" "compress=zstd" "noatime" ];
};
"/kitty" = {
device = "10.2.0.2:/storage/BunStore";
device = "10.2.0.2:/storage/bun";
fsType = "nfs4";
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
};

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ ... }:
{
networking.nftables.tables.forwarding = {
family = "inet";

View file

@ -1,7 +1,5 @@
{ config, lib, modulesPath, ... }:
{ config, lib, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];

View file

@ -1,9 +1,15 @@
{ config, ... }:
{
boot.supportedFilesystems = {
boot = {
supportedFilesystems = {
ntfs = config.system.desktop.enable;
zfs = config.system.server.enable;
};
swraid = {
enable = config.system.server.enable;
mdadmConf = "MAILADDR contact@nixfox.ca";
};
};
services = {
btrfs.autoScrub.enable = true;