Simplify Midas and move virtual raid config to system wide filesystems conf
This commit is contained in:
parent
2d61e291a9
commit
06f1990997
5 changed files with 12 additions and 12 deletions
|
@ -2,10 +2,6 @@
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_hardened;
|
kernelPackages = pkgs.linuxPackages_hardened;
|
||||||
swraid = {
|
|
||||||
enable = true;
|
|
||||||
mdadmConf = "MAILADDR contact@nixfox.ca";
|
|
||||||
};
|
|
||||||
lanzaboote.enable = true;
|
lanzaboote.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
options = [ "subvol=persist" "compress=zstd" "noatime" ];
|
options = [ "subvol=persist" "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
"/kitty" = {
|
"/kitty" = {
|
||||||
device = "10.2.0.2:/storage/BunStore";
|
device = "10.2.0.2:/storage/bun";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
networking.nftables.tables.forwarding = {
|
networking.nftables.tables.forwarding = {
|
||||||
family = "inet";
|
family = "inet";
|
||||||
|
|
|
@ -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.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
boot.supportedFilesystems = {
|
boot = {
|
||||||
|
supportedFilesystems = {
|
||||||
ntfs = config.system.desktop.enable;
|
ntfs = config.system.desktop.enable;
|
||||||
zfs = config.system.server.enable;
|
zfs = config.system.server.enable;
|
||||||
};
|
};
|
||||||
|
swraid = {
|
||||||
|
enable = config.system.server.enable;
|
||||||
|
mdadmConf = "MAILADDR contact@nixfox.ca";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
btrfs.autoScrub.enable = true;
|
btrfs.autoScrub.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue