nixos-config/machines/Packard-Server/hardware-configuration.nix

79 lines
2.5 KiB
Nix
Raw Normal View History

2022-01-30 00:09:53 +00:00
# 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, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/3e19dedb-658b-4173-a8ad-8d733d18f525";
2022-01-30 00:09:53 +00:00
fsType = "btrfs";
options = [ "subvol=nixos" "compress-force=zstd" "noatime" "autodefrag" ];
};
2022-01-30 23:40:36 +03:00
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/46765375-31b6-46a0-8956-1f0e05cf1ff9";
2022-01-30 00:09:53 +00:00
fileSystems."/nix" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/3e19dedb-658b-4173-a8ad-8d733d18f525";
2022-01-30 00:09:53 +00:00
fsType = "btrfs";
options = [ "subvol=nix" "compress-force=zstd" "noatime" "autodefrag" ];
};
fileSystems."/home" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/3e19dedb-658b-4173-a8ad-8d733d18f525";
2022-01-30 00:09:53 +00:00
fsType = "btrfs";
options = [ "subvol=home" "compress-force=zstd" "noatime" "autodefrag" ];
};
fileSystems."/var" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/3e19dedb-658b-4173-a8ad-8d733d18f525";
2022-01-30 00:09:53 +00:00
fsType = "btrfs";
options = [ "subvol=var" "compress-force=zstd" "noatime" "autodefrag" ];
};
fileSystems."/media/bittorrent" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/3e19dedb-658b-4173-a8ad-8d733d18f525";
2022-01-30 00:09:53 +00:00
fsType = "btrfs";
options = [
"subvol=bittorrent" "nodatacow"
"uid=${toString config.users.users.alukard.uid}"
"gid=${toString config.users.groups.users.gid}"
];
};
fileSystems."/media/libvirt" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/3e19dedb-658b-4173-a8ad-8d733d18f525";
2022-01-30 00:09:53 +00:00
fsType = "btrfs";
options = [
"subvol=libvirt" "nodatacow"
"uid=${toString config.users.users.alukard.uid}"
"gid=${toString config.users.groups.users.gid}"
];
};
fileSystems."/boot" =
2022-01-30 23:40:36 +03:00
{ device = "/dev/disk/by-uuid/E02A-5F90";
2022-01-30 00:09:53 +00:00
fsType = "vfat";
};
swapDevices = [
{
2022-01-30 23:40:36 +03:00
device = "/dev/disk/by-partuuid/f25cdcc8-c1b3-4014-882e-1a693a15e1f5";
2022-01-30 00:09:53 +00:00
randomEncryption.enable = true;
}
];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-01-30 23:40:36 +03:00
networking.hostId = "923a7c8b";
2022-01-30 00:09:53 +00:00
boot.initrd.supportedFilesystems = [ "btrfs" ];
boot.supportedFilesystems = [ "btrfs" ];
}