Rebase to flake parts #7
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{ ... }: {
|
||||
# Bootloader and EFI
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.efi.efiSysMountPoint = "/boot";
|
||||
boot.loader.systemd-boot.configurationLimit = 5;
|
||||
|
||||
# Hibernate support (resume from swap partition).
|
||||
boot.resumeDevice = "/dev/disk/by-uuid/403c9698-b501-4198-96cf-f27f82f1eb1a";
|
||||
|
||||
# Suspend is allowed again: kernel cmdline + out-of-tree apple-bce are in
|
||||
# `t2linux/_private/boot-tuning.nix` and `t2linux/_private/kernel.nix`. If you need
|
||||
# to block sleep while debugging: `systemd.sleep.settings.Sleep.AllowSuspend = "no";`
|
||||
|
||||
# Power and thermal management.
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
services.thermald.enable = true;
|
||||
hardware.sensor.iio.enable = true;
|
||||
|
||||
|
||||
|
||||
# Pull in linux-firmware (and friends) from nixpkgs.
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
# Enable flakes and the newer CLI.
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
Reference in New Issue
Block a user