forked from nyanloutre/nixos-config
136 lines
2.9 KiB
Nix
136 lines
2.9 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/6d3f76ec-e9ca-464a-96dd-5b2a305cb47d";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/5401-0EF1";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/var/lib/acme" =
|
||
{ device = "loutrepool/var/acme";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/transmission" =
|
||
{ device = "loutrepool/var/transmission";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/matrix-synapse" =
|
||
{ device = "loutrepool/var/matrix-synapse";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/radarr" =
|
||
{ device = "loutrepool/var/radarr";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/grafana" =
|
||
{ device = "loutrepool/var/grafana";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/slimserver" =
|
||
{ device = "loutrepool/var/slimserver";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/db/influxdb" =
|
||
{ device = "loutrepool/var/influxdb";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/postgresql" =
|
||
{ device = "loutrepool/var/postgresql";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/exports/steam" =
|
||
{ device = "loutrepool/steam";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/emby/ProgramData-Server" =
|
||
{ device = "loutrepool/var/emby";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/syncthing" =
|
||
{ device = "loutrepool/var/syncthing";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/mnt/medias" =
|
||
{ device = "loutrepool/medias";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/sieve" =
|
||
{ device = "loutrepool/var/sieve";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/vmail" =
|
||
{ device = "loutrepool/var/vmail";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/sonarr" =
|
||
{ device = "loutrepool/var/sonarr";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/jackett" =
|
||
{ device = "loutrepool/var/jackett";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/gitea" =
|
||
{ device = "loutrepool/var/gitea";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/dkim" =
|
||
{ device = "loutrepool/var/dkim";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/mnt/backup" =
|
||
{ device = "backup";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/mnt/backup_loutre" =
|
||
{ device = "loutrepool/backup";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
swapDevices =
|
||
[
|
||
{
|
||
device = "/var/swapfile";
|
||
size = 8096;
|
||
}
|
||
];
|
||
|
||
nix.maxJobs = lib.mkDefault 4;
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||
}
|