1
0
nixfiles/hosts/krypton/configuration.nix

39 lines
768 B
Nix
Raw Normal View History

2023-06-19 19:45:28 +02:00
{ config, pkgs, lib, ... }:
{
imports =
[
./hardware-configuration.nix
../../configuration/desktop
2023-06-20 20:36:53 +02:00
./backup.nix
2023-06-20 18:39:28 +02:00
./network.nix
./programs.nix
2023-06-19 19:45:28 +02:00
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.timeout = 0;
2023-06-19 19:45:28 +02:00
boot.initrd.luks = {
devices.lvm = {
device = "/dev/disk/by-uuid/f7059f75-764d-4cd1-9da7-7c64b05bff38";
bypassWorkqueues = true;
};
};
2023-07-10 23:57:49 +02:00
# https://wiki.clerie.de/notiz/pm-hibernation-image-allocation-is-97054-pages-short
boot.kernel.sysctl."vm.swappiness" = 1;
2023-06-20 11:48:12 +02:00
2023-06-19 19:45:28 +02:00
networking.hostName = "krypton";
boot.binfmt.emulatedSystems = [
"aarch64-linux"
];
2023-06-19 19:45:28 +02:00
system.stateVersion = "23.05";
}