60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
# SPDX-FileCopyrightText: 2023 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ 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";
|
|
};
|
|
};
|
|
|
|
# no TPM installed, causes boot to be delayed by 90s (timeout waiting for TPM)
|
|
systemd.tpm2.enable = false;
|
|
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
}
|