From 625b246da33dc22dc7c40b7b15700039f22cc33a Mon Sep 17 00:00:00 2001 From: Isshi0417 Date: Sat, 13 Jul 2024 23:31:55 +0900 Subject: [PATCH] Improve code --- modules/system/boot/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/system/boot/default.nix b/modules/system/boot/default.nix index 6e01851..c2f9e56 100644 --- a/modules/system/boot/default.nix +++ b/modules/system/boot/default.nix @@ -12,14 +12,20 @@ device = "nodev"; useOSProber = true; - theme = "${ - (pkgs.fetchFromGitHub { + theme = pkgs.stdenv.mkDerivation { + name = "tartarus-grub"; + + src = pkgs.fetchFromGitHub { owner = "AllJavi"; repo = "tartarus-grub"; rev = "b116360a2a0991062a4d728cb005dfd309fbb82a"; hash = "sha256-/Pzr0R3zzOXUi2pAl8Lvg6aHTiwXTIrxQ1vscbEK/kU="; - }) - }/tartarus/"; + }; + + installPhase = '' + cp tartarus -r $out + ''; + }; }; }; } \ No newline at end of file