Skip to content

Commit

Permalink
add sysz
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 21, 2021
1 parent e91b348 commit 6f75d70
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions flake.nix
Expand Up @@ -36,6 +36,11 @@
flake = false;
};

sysz = {
url = "github:joehillen/sysz";
flake = false;
};

tmux = {
url = "github:tmux/tmux/3.3-rc";
flake = false;
Expand Down Expand Up @@ -176,6 +181,22 @@
${final.pandoc}/bin/pandoc -s -f markdown -t man $1 | ${final.groff}/bin/groff -T utf8 -man | ${final.less}/bin/less
'';

sysz = final.stdenv.mkDerivation {
name = "sysz";
src = inputs.sysz;

buildPhase = "true";
buildInputs = [ final.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -m755 sysz $out/bin
wrapProgram $out/bin/sysz --prefix PATH : ${
final.lib.makeBinPath [ final.fzf ]
}
'';
};

tmux = prev.tmux.overrideAttrs (attrs:
attrs // {
src = inputs.tmux;
Expand Down
2 changes: 2 additions & 0 deletions machines/torch/default.nix
Expand Up @@ -43,6 +43,8 @@ inputs:
networking.useDHCP = false;
networking.interfaces.wlp3s0.useDHCP = true;

environment.systemPackages = [ pkgs.sysz ];

# Enable CUPS to print documents.
# services.printing.enable = true;

Expand Down

0 comments on commit 6f75d70

Please sign in to comment.