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 = { loader = {
efi.efiSysMountPoint = "/boot/efi"; efi.efiSysMountPoint = "/boot/efi";
systemd-boot = { systemd-boot = {
sortKey = "a_nixos"; sortKey = "aa";
netbootxyz = { netbootxyz = {
enable = true; enable = true;
sortKey = "z_netbootxyz"; sortKey = "zz";
}; };
}; };
}; };

View file

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