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 = {
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
programs = {
|
extraFiles = {
|
||||||
# corectrl.enable = true;
|
"efi/edk2-shell/shell.efi" = "${pkgs.edk2-uefi-shell}/shell.efi";
|
||||||
steam.dedicatedServer.openFirewall = true;
|
"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