rotterdam can now reboot to qubes
This commit is contained in:
parent
95626be984
commit
2a0a5ba73f
2 changed files with 27 additions and 13 deletions
|
|
@ -11,10 +11,10 @@
|
|||
loader = {
|
||||
efi.efiSysMountPoint = "/boot/efi";
|
||||
systemd-boot = {
|
||||
sortKey = "a_nixos";
|
||||
sortKey = "aa";
|
||||
netbootxyz = {
|
||||
enable = true;
|
||||
sortKey = "z_netbootxyz";
|
||||
sortKey = "zz";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue