65 lines
1.9 KiB
Nix
65 lines
1.9 KiB
Nix
{ config, lib, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/hardware/network/broadcom-43xx.nix")
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
boot.extraModprobeConfig = ''
|
|
options snd_hda_intel power_save=0
|
|
'';
|
|
|
|
fileSystems."/" =
|
|
{ device = "/dev/disk/by-uuid/809e9e9e-ff44-4ecb-8754-e3f2000e5788";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=root" ];
|
|
};
|
|
|
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/68a19b7d-358a-419c-9507-1e103526f44a";
|
|
|
|
fileSystems."/home" =
|
|
{ device = "/dev/disk/by-uuid/809e9e9e-ff44-4ecb-8754-e3f2000e5788";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=home" ];
|
|
};
|
|
|
|
fileSystems."/nix" =
|
|
{ device = "/dev/disk/by-uuid/809e9e9e-ff44-4ecb-8754-e3f2000e5788";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=nix" ];
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-uuid/553D-668A";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
|
|
fileSystems."/var/mediathek" = {
|
|
device = "/dev/disk/by-uuid/7b0b589f-5759-411a-975a-08a3c7a0f953";
|
|
fsType = "ext4";
|
|
options = [ # If you don't have this options attribute, it'll default to "defaults"
|
|
# boot options for fstab. Search up fstab mount options you can use
|
|
"users" # Allows any user to mount and unmount
|
|
"nofail" # Prevent system from failing if this drive doesn't mount
|
|
];
|
|
};
|
|
|
|
swapDevices = [{
|
|
device = "/swapfile";
|
|
size = 8 * 1045;
|
|
}];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|