diff options
author | tv <tv@shackspace.de> | 2015-06-22 19:34:32 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-22 19:34:32 +0200 |
commit | 130f27c48e10a452dab2f9214bc4a2c59251bacd (patch) | |
tree | 6dabe6cc82cfd27188c4cbfc43961efe0f045512 | |
parent | f651a2b10a447c0a9855f302d3ee4f4b73115c68 (diff) |
RIP tv tools
-rw-r--r-- | modules/tv/tools.nix | 101 | ||||
-rw-r--r-- | modules/wu/default.nix | 1 |
2 files changed, 0 insertions, 102 deletions
diff --git a/modules/tv/tools.nix b/modules/tv/tools.nix deleted file mode 100644 index cf3fda93a..000000000 --- a/modules/tv/tools.nix +++ /dev/null @@ -1,101 +0,0 @@ -{ config, pkgs, ... }: - -let - inherit (pkgs) lib stdenv; - inherit (lib.strings) concatStringsSep stringAsChars; - inherit (lib.attrsets) attrValues mapAttrs; - inherit (lib) makeSearchPath; - inherit (import ../../lib { inherit pkgs; }) shell-escape; - - - # TODO make these scripts available in an maintenance shell - - - scripts = { - - # just so we don't reboot accidentally - reboot = - '' - echo no reboot >&2 - exit 23 - ''; - - rebuild = - '' - nixpkgs=''${nixpkgs-/home/tv/src/nixpkgs} - nixos-rebuild \ - --show-trace \ - -I nixpkgs="$nixpkgs" \ - switch \ - 2>&1 \ - | sed ${shell-escape '' - s|"\(/home/tv/src/config/[^":]*\)"|[31;1m\1[m| - s|^trace:\s*\(.*\)|[35;1m\1[m| - ''} - ''; - - }; - - wrap = script: - '' - #! /bin/sh - set -euf - ${script} - ''; - #lib=$lib - #export PATH=$bin:${makeSearchPath "bin" buildInputs} - - buildScript = name: script: - builtins.trace "building ${name}" - '' - echo ${shell-escape script} > $bin/${shell-escape name} - chmod +x $bin/${shell-escape name} - ''; - - - - tools = pkgs.stdenv.mkDerivation rec { - name = "tools"; - src = /var/empty; - - buildInputs = []; - - - buildPhase = - '' - mkdir $out - - bin=$out/bin - mkdir $bin - - ${concatStringsSep "\n" (attrValues (mapAttrs buildScript scripts))} - - ''; - #'' - #mkdir $out - - #lib=$out/lib - #cp -r lib $lib - - #bin=$out/bin - #mkdir $bin - #${concatStringsSep "\n" (attrValues (mapAttrs (name: script: - # '' - # { - # echo '#! /bin/sh' - # echo 'set -euf' - # echo "lib=$lib" - # echo "export PATH=$bin:${makeSearchPath "bin" buildInputs}" - # echo ${shell-escape script} - # } > $bin/${name} - # chmod +x $bin/${name} - # '') scripts))} - #''; - installPhase = ":"; - }; - -in - -{ - environment.systemPackages = [ tools ]; -} diff --git a/modules/wu/default.nix b/modules/wu/default.nix index ac11f7466..f72314696 100644 --- a/modules/wu/default.nix +++ b/modules/wu/default.nix @@ -18,7 +18,6 @@ in ../tv/sanitize.nix ../tv/smartd.nix ../tv/synaptics.nix - #../tv/tools.nix ../tv/urxvt.nix ../tv/xserver.nix ../wu/users.nix |