56 lines
1.3 KiB
Nix
Executable file
56 lines
1.3 KiB
Nix
Executable file
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
kernelModules = ["v4l2loopback" "kvm-amd"];
|
|
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback.out];
|
|
loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
configurationLimit = 10;
|
|
};
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot/efi";
|
|
};
|
|
};
|
|
initrd = {
|
|
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"];
|
|
kernelModules = [];
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/a423d32f-ac5d-4ea2-82fb-f94b05afce29";
|
|
fsType = "ext4";
|
|
};
|
|
"/boot/efi" = {
|
|
device = "/dev/disk/by-uuid/FEAF-138A";
|
|
fsType = "vfat";
|
|
};
|
|
"/nas/restic" = {
|
|
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/tsuki";
|
|
fsType = "nfs";
|
|
};
|
|
};
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
swapDevices = 1;
|
|
algorithm = "zstd";
|
|
};
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|