110 lines
2.6 KiB
Nix
110 lines
2.6 KiB
Nix
_: {
|
|
module =
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
hostInfo,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
networking.hostName = hostInfo.hostname;
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/5dfd3b74-2162-4167-825b-21259ca48820";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=@root"
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
|
|
fileSystems."/nix" = {
|
|
device = "/dev/disk/by-uuid/5dfd3b74-2162-4167-825b-21259ca48820";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=@nix"
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
|
|
fileSystems."/persist" = {
|
|
device = "/dev/disk/by-uuid/5dfd3b74-2162-4167-825b-21259ca48820";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=@persist"
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
|
|
fileSystems."/btrfs_root" = {
|
|
device = "/dev/disk/by-uuid/5dfd3b74-2162-4167-825b-21259ca48820";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"noatime"
|
|
"ro"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
|
|
fileSystems."/var/log" = {
|
|
device = "/dev/disk/by-uuid/5dfd3b74-2162-4167-825b-21259ca48820";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=@logs"
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
neededForBoot = true;
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/7155-EF89";
|
|
fsType = "vfat";
|
|
options = [
|
|
"fmask=0022"
|
|
"dmask=0022"
|
|
];
|
|
};
|
|
|
|
boot = {
|
|
loader.limine.enable = true;
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
kernelModules = [ "kvm-intel" ];
|
|
extraModprobeConfig = "options kvm_intel nested=1";
|
|
extraModulePackages = [ ];
|
|
supportedFilesystems = [ "btrfs" ];
|
|
initrd = {
|
|
compressorArgs = [
|
|
"-22"
|
|
"-T0"
|
|
"--long"
|
|
"--ultra"
|
|
];
|
|
availableKernelModules = [
|
|
"nvme"
|
|
"xhci_pci"
|
|
"ahci"
|
|
"usbhid"
|
|
];
|
|
kernelModules = [ ];
|
|
systemd.enable = false;
|
|
postDeviceCommands = lib.mkBefore (builtins.readFile ./server-n0-darling-erasure.sh);
|
|
};
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.enableRedistributableFirmware = true;
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
};
|
|
}
|