From 1dda77e45dc615c9dc3b967153cf309ef6cb595a Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Mon, 2 Aug 2021 17:58:56 +0300 Subject: [PATCH] 0x0 --- profiles/core/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/profiles/core/default.nix b/profiles/core/default.nix index 2e6f42e..9a2f07c 100644 --- a/profiles/core/default.nix +++ b/profiles/core/default.nix @@ -56,6 +56,16 @@ in nix-index du-dust mosh + ( + pkgs.runCommand "0x0.sh" { } '' + mkdir -p $out/bin + cp ${pkgs.fetchurl { + url = "https://raw.githubusercontent.com/Calinou/0x0/master/bin/0x0"; + sha256 = "sha256-Fad+AKBuA49qtRQfnroqjaNWeuRaCekXZG9sS9JVeaM="; + }} $out/bin/0x0 + chmod +x $out/bin/0x0 + '' + ) ]; shellAliases = @@ -136,8 +146,8 @@ in system.activationScripts.diff = '' ${pkgs.nixUnstable}/bin/nix store \ - --experimental-features 'nix-command' \ - diff-closures /run/current-system "$systemConfig" + --experimental-features 'nix-command' \ + diff-closures /run/current-system "$systemConfig" ''; nix = @@ -177,3 +187,4 @@ in services.earlyoom.enable = true; } +