From 599205262e2426705ff956b3a7d2f46d73f51ded Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 28 Jan 2020 17:02:59 +1300 Subject: [PATCH] desktop: add reddit command --- system/desktop/packages.nix | 13 ++++++++----- system/desktop/restic.nix | 3 +-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/system/desktop/packages.nix b/system/desktop/packages.nix index 8c26266..a1ee630 100644 --- a/system/desktop/packages.nix +++ b/system/desktop/packages.nix @@ -175,10 +175,6 @@ in { irc - #fzf - #rofi - #dmenu - manpages emo @@ -303,8 +299,15 @@ in { (pkgs.writers.writeBashBin "etc-info-restic" (lib.fileContents )) + (pkgs.writers.writeDashBin "reddit" '' + ${unstablePkgs.tuir}/bin/tuir "$@" + '') + ] ++ (lib.crossLists pandocScript [ [ "man" "markdown" "mediawiki" ] [ "mediawiki" "docbook5" "html5" "man" ] - ]); + ]) ++ (map (search: + pkgs.writers.writeDashBin "reddit-${search}" '' + ${unstablePkgs.tuir}/bin/tuir -s ${search} "$@" + '') [ "nixos" "systemdUltras" "terraform" ]); } diff --git a/system/desktop/restic.nix b/system/desktop/restic.nix index a40d65a..0cb50be 100644 --- a/system/desktop/restic.nix +++ b/system/desktop/restic.nix @@ -1,5 +1,4 @@ -{ lib, ... }: -{ +{ lib, ... }: { backup.services.restic = { "on-porani.private".enable = lib.mkDefault true;