nix/devices/p14s/default.nix
2026-08-25 14:00:05 +02:00

38 lines
No EOL
892 B
Nix

{ pkgs, lib, ... }:
{
imports = [
../../common
./hardware-configuration.nix
];
networking.hostName = "p14s";
# secure boot shit
environment.systemPackages = [ pkgs.sbctl ];
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
# swap & hibernate
boot.initrd.luks.devices."luks-d51bdb99-5966-40d3-a920-83ea78a73699" = {
device = "/dev/disk/by-uuid/d51bdb99-5966-40d3-a920-83ea78a73699";
crypttabExtraOpts = [ "tpm2-device=auto" ];
};
boot.kernelParams = [ "resume=/dev/disk/by-uuid/d51bdb99-5966-40d3-a920-83ea78a73699" ];
# vm definition
virtualisation.vmVariant = {
virtualisation = {
memorySize = 8192;
cores = 6;
};
environment.systemPackages = with pkgs; [
spice-vdagentd
];
};
system.stateVersion = "26.05"; # yes
}