2023-06-19 19:45:28 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
2023-06-19 22:20:47 +02:00
|
|
|
|
|
|
|
../../configuration/desktop
|
|
|
|
|
2023-06-20 20:36:53 +02:00
|
|
|
./backup.nix
|
2024-01-08 15:44:28 +01:00
|
|
|
./initrd.nix
|
2023-06-20 18:39:28 +02:00
|
|
|
./network.nix
|
2023-06-19 22:20:47 +02:00
|
|
|
./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;
|
2023-07-01 00:10:22 +02:00
|
|
|
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";
|
|
|
|
|
2023-10-25 18:25:15 +02:00
|
|
|
boot.binfmt.emulatedSystems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
|
|
|
|
2023-06-19 19:45:28 +02:00
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|
|
|
|
|