From fe31ea937f06a6744350ad9b33601bad322ab9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 27 Jun 2022 17:57:42 +0200 Subject: [PATCH] :broom: remove unused scripts --- modules/cli/bin/cheat.nix | 9 --------- modules/cli/bin/default.nix | 13 ++---------- modules/cli/bin/git-switch.nix | 36 ---------------------------------- 3 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 modules/cli/bin/cheat.nix delete mode 100644 modules/cli/bin/git-switch.nix diff --git a/modules/cli/bin/cheat.nix b/modules/cli/bin/cheat.nix deleted file mode 100644 index d5f2ea0..0000000 --- a/modules/cli/bin/cheat.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ pkgs }: - -pkgs.writeShellApplication { - name = "cheat"; - - runtimeInputs = with pkgs; [ curl bat ]; - - text = ''curl -s "cheat.sh/$1" | bat''; -} diff --git a/modules/cli/bin/default.nix b/modules/cli/bin/default.nix index 38477fa..d047b22 100644 --- a/modules/cli/bin/default.nix +++ b/modules/cli/bin/default.nix @@ -1,21 +1,12 @@ { config, lib, pkgs, ... }: let - cheat = import ./cheat.nix { inherit pkgs; }; cycleSinks = import ./cycleSinks.nix { inherit pkgs; }; - git-switch = import ./git-switch.nix { inherit pkgs; }; protonge = import ./protonge.nix { inherit pkgs; }; randomWallpaper = import ./randomWallpaper.nix { inherit pkgs; }; share = import ./share.nix { inherit pkgs; }; sxhkdHelp = import ./sxhkdHelp.nix { inherit pkgs; }; in { - home-manager.users.moritz.home.packages = [ - # cheat - cycleSinks - git-switch - protonge - randomWallpaper - share - sxhkdHelp - ]; + home-manager.users.moritz.home.packages = + [ cycleSinks protonge randomWallpaper share sxhkdHelp ]; } diff --git a/modules/cli/bin/git-switch.nix b/modules/cli/bin/git-switch.nix deleted file mode 100644 index 67512b0..0000000 --- a/modules/cli/bin/git-switch.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ pkgs }: - -pkgs.writeShellApplication { - name = "git-switch"; - - runtimeInputs = with pkgs; [ git fzf ]; - - text = '' - case "$(printf "GitHub\nUniversity" | fzf --prompt "Account: " --height 5)" in - "GitHub") - user="MoritzBoehme" - email="mail@moritzboeh.me" - key="0x213820E2795F5CF5" - ;; - - "University") - user="Moritz Boehme" - email="mb18cele@studserv.uni-leipzig.de" - key="0xE07B20727F85831C" - ;; - - *) - echo "Invalid choice!" - exit 1 - ;; - esac - - - git config --local user.name "$user" - echo "Set username to \"$user\"." - git config --local user.email "$email" - echo "Set email to \"$email\"." - git config --local user.signingkey "$key" - echo "Set key to \"$key\"." - ''; -}