nix/devices/p14s/default.nix
2026-08-26 03:57:23 +02:00

48 lines
1.1 KiB
Nix

{ pkgs, lib, ... }:
{
imports = [
../../modules/nixos
../../modules/boot
../../modules/
../../modules/boot/plymouth.nix
../../modules/boot/secure-boot.nix
./hardware-configuration.nix
];
networking.hostName = "p14s";
# 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" ];
boot.initrd.checkJournalingFS = false;
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
mesa
vulkan-loader
vulkan-validation-layers
];
extraPackages32 = with pkgs.pkgsi686Linux; [
mesa
vulkan-loader
];
};
networking.firewall.allowedTCPPorts = [
22
8080
];
networking.firewall.allowedUDPPorts = [ 8080 ];
networking.firewall.trustedInterfaces = [
"virbr0"
"docker0"
];
system.stateVersion = "26.05"; # yes
}