Cleaned up the qubes reboot on rotterdam
This commit is contained in:
parent
f4dccd11e9
commit
96f5c16e42
2 changed files with 24 additions and 2 deletions
|
|
@ -57,7 +57,6 @@ in {
|
|||
unrar
|
||||
ventoy
|
||||
virt-manager
|
||||
yad
|
||||
wezterm
|
||||
] ++ kdepkgs;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,29 @@ let
|
|||
name = "qubes.nsh";
|
||||
text = "HD1f65535a1:EFI\\qubes\\grubx64.efi";
|
||||
};
|
||||
|
||||
reboot-into-qubes = pkgs.makeDesktopItem {
|
||||
name = "reboot-into-qubes";
|
||||
icon = pkgs.fetchurl {
|
||||
url =
|
||||
"https://raw.githubusercontent.com/vinceliuice/Qogir-icon-theme/31f267e1f5fd4e9596bfd78dfb41a03d3a9f33ee/src/scalable/apps/distributor-logo-qubes.svg";
|
||||
sha256 = "sha256-QbHr7s5Wcs7uFtfqZctMyS0iDbMfiiZOKy2nHhDOfn0=";
|
||||
};
|
||||
desktopName = "Qubes OS";
|
||||
genericName = "Reboot into Qubes OS";
|
||||
categories = [ "System" ];
|
||||
startupNotify = true;
|
||||
exec = pkgs.writeShellScript "reboot-into-qubes" ''
|
||||
${pkgs.yad}/bin/yad --form \
|
||||
--title="Qubes OS" \
|
||||
--image distributor-logo-qubes \
|
||||
--text "Are you sure you want to reboot into Qubes OS?" \
|
||||
--button="Yes:0" --button="Cancel:1"
|
||||
if [ $? -eq 0 ]; then
|
||||
systemctl reboot --boot-loader-entry=qubes.conf
|
||||
fi
|
||||
'';
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
# Host-common imports
|
||||
|
|
@ -34,7 +57,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ ollama ];
|
||||
environment.systemPackages = with pkgs; [ reboot-into-qubes ];
|
||||
|
||||
hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue