🧹 remove unused scripts

nixos
Moritz Böhme 2022-06-27 17:57:42 +02:00
parent 0d39fa8f2e
commit fe31ea937f
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
3 changed files with 2 additions and 56 deletions

View File

@ -1,9 +0,0 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "cheat";
runtimeInputs = with pkgs; [ curl bat ];
text = ''curl -s "cheat.sh/$1" | bat'';
}

View File

@ -1,21 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cheat = import ./cheat.nix { inherit pkgs; };
cycleSinks = import ./cycleSinks.nix { inherit pkgs; }; cycleSinks = import ./cycleSinks.nix { inherit pkgs; };
git-switch = import ./git-switch.nix { inherit pkgs; };
protonge = import ./protonge.nix { inherit pkgs; }; protonge = import ./protonge.nix { inherit pkgs; };
randomWallpaper = import ./randomWallpaper.nix { inherit pkgs; }; randomWallpaper = import ./randomWallpaper.nix { inherit pkgs; };
share = import ./share.nix { inherit pkgs; }; share = import ./share.nix { inherit pkgs; };
sxhkdHelp = import ./sxhkdHelp.nix { inherit pkgs; }; sxhkdHelp = import ./sxhkdHelp.nix { inherit pkgs; };
in { in {
home-manager.users.moritz.home.packages = [ home-manager.users.moritz.home.packages =
# cheat [ cycleSinks protonge randomWallpaper share sxhkdHelp ];
cycleSinks
git-switch
protonge
randomWallpaper
share
sxhkdHelp
];
} }

View File

@ -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\"."
'';
}