From de6da2748cd3efa897df299707694fe418b9f17a Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 6 Feb 2024 17:20:38 +0800 Subject: [PATCH] home/scripts: cleanup --- .../common/graphical/home/scripts/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/profiles/common/graphical/home/scripts/default.nix b/nixos/profiles/common/graphical/home/scripts/default.nix index 0f05480..711c76b 100644 --- a/nixos/profiles/common/graphical/home/scripts/default.nix +++ b/nixos/profiles/common/graphical/home/scripts/default.nix @@ -15,17 +15,17 @@ with pkgs; let inherit name; executable = true; destination = "/bin/${name}"; - text = lib.concatStringsSep "\n" [ - "#!${runtimeShell}" - (lib.optionalString (runtimeInputs != []) ''export PATH="${lib.makeBinPath runtimeInputs}:$PATH"'') - (builtins.readFile file) - ]; + text = '' + #!${runtimeShell} + ${lib.optionalString (runtimeInputs != []) ''export PATH="${lib.makeBinPath runtimeInputs}:$PATH"''} + ${builtins.readFile file} + ''; }; in { home.packages = [ (makeScript { name = "lofi"; - runtimeInputs = [mpv]; + runtimeInputs = [coreutils mpv]; file = pkgs.fetchurl { url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi"; hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";