rotterdam can now reboot to qubes

This commit is contained in:
William 2024-03-28 21:58:08 -03:00
parent 95626be984
commit 2a0a5ba73f
2 changed files with 27 additions and 13 deletions

View file

@ -11,10 +11,10 @@
loader = {
efi.efiSysMountPoint = "/boot/efi";
systemd-boot = {
sortKey = "a_nixos";
sortKey = "aa";
netbootxyz = {
enable = true;
sortKey = "z_netbootxyz";
sortKey = "zz";
};
};
};

View file

@ -1,6 +1,11 @@
{ inputs, config, pkgs, lib, ... }:
{
let
qubesnsh = pkgs.writeTextFile {
name = "qubes.nsh";
text = "HD1f65535a1:EFI\\qubes\\grubx64.efi";
};
in {
imports = [
# Host-common imports
../common
@ -37,15 +42,24 @@
nix.nixPath = [ "nixos-config=${./rotterdam.nix}" ];
# users.users.user.extraGroups = [ "corectrl" ];
boot.kernelParams = [
"processor.max_cstate=1" # Fixes bug where ryzen cpus freeze when in highest C state
"clearcpuid=514"
];
programs = {
# corectrl.enable = true;
steam.dedicatedServer.openFirewall = true;
boot = {
kernelParams = [
"processor.max_cstate=1" # Fixes bug where ryzen cpus freeze when in highest C state
"clearcpuid=514"
];
loader.systemd-boot = {
extraFiles = {
"efi/edk2-shell/shell.efi" = "${pkgs.edk2-uefi-shell}/shell.efi";
"qubes.nsh" = qubesnsh;
};
extraEntries."qubes.conf" = ''
title Qubes OS
efi /efi/edk2-shell/shell.efi
options -nointerrupt qubes.nsh
sort-key ab
'';
};
};
programs.steam.dedicatedServer.openFirewall = true;
}