bro ion even no
This commit is contained in:
parent
69a92fdd5e
commit
ed13a64d87
9 changed files with 215 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../common
|
||||
|
|
@ -7,21 +7,32 @@
|
|||
|
||||
networking.hostName = "p14s";
|
||||
|
||||
boot.initrd.luks.devices."luks-d51bdb99-5966-40d3-a920-83ea78a73699".device = "/dev/disk/by-uuid/d51bdb99-5966-40d3-a920-83ea78a73699";
|
||||
# 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
|
||||
];
|
||||
};
|
||||
|
||||
users.users."guest" = {
|
||||
isNormalUser = true;
|
||||
name = "Guest";
|
||||
initialPassword = "guest";
|
||||
createHome = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "26.05"; # yes
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue