Skip to content

Commit ed53ac3

Browse files
committed
refactor: clean up reboot-to-windows
1 parent 1585668 commit ed53ac3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

pkgs/reboot-to-windows/default.nix

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ makeDesktopItem {
77
desktopName = "Reboot to Windows";
88
genericName = "reboot to windows";
99
comment = "reboot to windows";
10-
icon = let
11-
icon = fetchurl {
12-
url =
13-
"https://raw.githubusercontent.com/Wartybix/Reboot-To-Windows/refs/heads/master/icons/reboot-to-windows.svg";
14-
hash = "sha256-49+Q+C4N8v++U0NW6syVT86ypEbac9HfFRq1cp3+LEU=";
15-
};
16-
in icon;
10+
icon = fetchurl {
11+
url =
12+
"https://raw.githubusercontent.com/Wartybix/Reboot-To-Windows/refs/heads/master/icons/reboot-to-windows.svg";
13+
hash = "sha256-49+Q+C4N8v++U0NW6syVT86ypEbac9HfFRq1cp3+LEU=";
14+
};
1715
categories = [ "System" ];
18-
exec = let
19-
reboot-to-windows = writeShellScriptBin "reboot-to-windows" ''
20-
systemctl reboot --boot-loader-entry=${bootloader-entry} > /home/gabe/test.log 2>&1
21-
'';
22-
in lib.getExe reboot-to-windows;
16+
exec = lib.getExe (writeShellScriptBin "reboot-to-windows" ''
17+
systemctl reboot --boot-loader-entry=${bootloader-entry} > /home/gabe/test.log 2>&1
18+
'');
2319
}

0 commit comments

Comments
 (0)