nix/nas/hardware-configuration.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2022-08-07 21:35:26 +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 = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAG923996P-part1";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAG923996P-part3";
fsType = "vfat";
};
fileSystems."/mnt/backup" =
{ device = "/dev/disk/by-uuid/93a86fb5-8c9f-488b-a3e4-ca5444343246";
fsType = "btrfs";
options = [ "space_cache=v2" ];
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}