2020-09-27 14:27:25 +02:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
boot.initrd.availableKernelModules = [ "usbhid" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2021-03-13 12:51:16 +01:00
|
|
|
boot.initrd.luks.devices."enc-media".device =
|
|
|
|
"/dev/disk/by-uuid/47158a41-995a-45d5-b7e1-1dc6e1868be7";
|
|
|
|
|
2020-09-27 18:44:17 +02:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_BOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2020-09-27 14:27:25 +02:00
|
|
|
|
2020-09-27 18:44:17 +02:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2020-09-27 14:27:25 +02:00
|
|
|
|
2021-03-13 12:51:16 +01:00
|
|
|
fileSystems."/media" = {
|
|
|
|
device = "/dev/disk/by-uuid/2441d724-7f8e-4bbb-a50f-9074f3d0d3f1";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" "compress-force=zstd" "noatime" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/media/.snapshots" = {
|
|
|
|
device = "/dev/disk/by-uuid/2441d724-7f8e-4bbb-a50f-9074f3d0d3f1";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@snapshots" "compress-force=zstd" "noatime" ];
|
|
|
|
};
|
|
|
|
|
2022-05-14 18:11:19 +02:00
|
|
|
swapDevices = [{
|
|
|
|
device = "/swapfile";
|
|
|
|
size = 4096;
|
|
|
|
}];
|
2020-09-27 14:27:25 +02:00
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
|
|
}
|