nixos-config/machines/shinobu/hardware-configuration.nix

53 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-07-01 12:37:12 +02:00
{ config, lib, modulesPath, pkgs, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
loader = {
grub.enable = false;
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
supportedFilesystems = [ "btrfs" ];
kernelParams = [
"console=ttyS0,115200n8"
];
initrd = {
availableKernelModules = [
"aesni_intel" # hardware crypto for luks
"ahci"
"sd_mod"
"sdhci_pci"
"usb_storage"
"xhci_pci"
];
kernelModules = [ ];
luks.devices = {
root = {
device = "/dev/disk/by-uuid/66b38a54-13b4-4c56-a1b7-d45e789e6718";
allowDiscards = true;
};
};
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/7fd4f8f4-0a36-424b-b7cc-f7df49781c7f";
fsType = "btrfs";
options = [ "compress=zstd" "discard" "noatime" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/446B-FC4C";
fsType = "vfat";
};
};
powerManagement.cpuFreqGovernor = "powersave";
}