From 569c14acd49352d65382fdfb687fa0d1e3ecdf8c Mon Sep 17 00:00:00 2001 From: Swarsel Date: Mon, 16 Dec 2024 21:05:40 +0100 Subject: [PATCH] chore: cleanup --- modules/home/darwin.nix | 1 - pkgs/cnf/default.nix | 40 ---------------------------------------- pkgs/ew/default.nix | 7 ------- 3 files changed, 48 deletions(-) delete mode 100644 pkgs/cnf/default.nix delete mode 100644 pkgs/ew/default.nix diff --git a/modules/home/darwin.nix b/modules/home/darwin.nix index d5f19ba5..69cb5137 100644 --- a/modules/home/darwin.nix +++ b/modules/home/darwin.nix @@ -1,5 +1,4 @@ { lib, ... }: { options.swarselsystems.isDarwin = lib.mkEnableOption "darwin host"; - } diff --git a/pkgs/cnf/default.nix b/pkgs/cnf/default.nix deleted file mode 100644 index 2486be2d..00000000 --- a/pkgs/cnf/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ writeShellApplication, ncurses, nix-index }: - -writeShellApplication { - name = "cnf"; - runtimeInputs = [ ncurses nix-index ]; - text = '' - command_not_found_handle () { - if [ -n "''${MC_SID-}" ] || ! [ -t 1 ]; then - >&2 echo "$1: command not found" - return 127 - fi - - echo -n "searching nix-index..." - ATTRS=$(nix-locate --minimal --no-group --type x --type s --top-level --whole-name --at-root "/bin/$1") - - case $(echo -n "$ATTRS" | grep -c "^") in - 0) - >&2 echo -ne "$(tput el1)\r" - >&2 echo "$1: command not found" - ;; - *) - >&2 echo -ne "$(tput el1)\r" - >&2 echo "The program ‘$(tput setaf 4)$1$(tput sgr0)’ is currently not installed." - >&2 echo "It is provided by the following derivation(s):" - while read -r ATTR; do - ATTR=''${ATTR%.out} # Strip trailing '.out' - >&2 echo " $(tput setaf 12)nixpkgs#$(tput setaf 4)$ATTR$(tput sgr0)" - done <<< "$ATTRS" - esac - - return 127 - } - - command_not_found_handler () { - command_not_found_handle "$@" - return $? - } - - ''; -} diff --git a/pkgs/ew/default.nix b/pkgs/ew/default.nix deleted file mode 100644 index 07d4bef4..00000000 --- a/pkgs/ew/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ writeShellApplication, emacs-pgtk, sway, jq }: - -writeShellApplication { - name = "ew"; - runtimeInputs = [ emacs-pgtk sway jq ]; - text = builtins.readFile ../../scripts/editor-wait.sh; -}