From 471bd8ca5442bac39cb74a5c312a8460a6afbd59 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 21 Sep 2025 22:28:20 +0100 Subject: [PATCH] Remove old scripts Signed-off-by: Oliver Davies --- home-manager/opdavies/t480.nix | 2 -- modules/hosts/t480/notes.nix | 7 ------- modules/notes/base.nix | 7 ------- modules/notes/session-variables.nix | 13 ------------- modules/tmux/extra-config.nix | 1 - packages/default.nix | 3 --- packages/notes/default.nix | 23 ----------------------- packages/todos-add.nix | 21 --------------------- packages/todos-edit.nix | 9 --------- 9 files changed, 86 deletions(-) delete mode 100644 modules/hosts/t480/notes.nix delete mode 100644 modules/notes/base.nix delete mode 100644 modules/notes/session-variables.nix delete mode 100644 packages/notes/default.nix delete mode 100755 packages/todos-add.nix delete mode 100755 packages/todos-edit.nix diff --git a/home-manager/opdavies/t480.nix b/home-manager/opdavies/t480.nix index 83423c7e..b4826a3c 100644 --- a/home-manager/opdavies/t480.nix +++ b/home-manager/opdavies/t480.nix @@ -25,8 +25,6 @@ tag-release time-until timer - todos-add - todos-edit unmounter update-all-git-repos vic diff --git a/modules/hosts/t480/notes.nix b/modules/hosts/t480/notes.nix deleted file mode 100644 index 8fbeaf3d..00000000 --- a/modules/hosts/t480/notes.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - flake.modules.homeManager.base = - { config, ... }: - { - programs.notes.directory = "${config.xdg.userDirs.documents}/wiki/notes"; - }; -} diff --git a/modules/notes/base.nix b/modules/notes/base.nix deleted file mode 100644 index 77120315..00000000 --- a/modules/notes/base.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ - flake.modules.homeManager.base = - { pkgs, ... }: - { - home.packages = [ pkgs.notes ]; - }; -} diff --git a/modules/notes/session-variables.nix b/modules/notes/session-variables.nix deleted file mode 100644 index dd88be9f..00000000 --- a/modules/notes/session-variables.nix +++ /dev/null @@ -1,13 +0,0 @@ -{lib,...}: -{ - flake.modules.homeManager.base = - { config, ... }: - { - options.programs.notes.directory = lib.mkOption { - default = "${config.xdg.userDirs.documents}/notes"; - type = lib.types.str; - }; - - config.home.sessionVariables.NOTES_DIRECTORY = config.programs.notes.directory; - }; -} diff --git a/modules/tmux/extra-config.nix b/modules/tmux/extra-config.nix index 3e33af50..870ae500 100644 --- a/modules/tmux/extra-config.nix +++ b/modules/tmux/extra-config.nix @@ -63,7 +63,6 @@ bind-key -r f run-shell "tmux new-window tmux-sessionizer" bind-key -r D new-window -c "#{pane_current_path}" "[[ -e TODO.md ]] && nvim TODO.md || nvim ~/Documents/wiki/todo.txt" - bind-key -r N new-window "notes" bind-key -r W split-window -h -c ~/Documents/wiki "nvim '+Telescope find_files'" ''; } diff --git a/packages/default.nix b/packages/default.nix index 8d7bb22d..418c1638 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -23,15 +23,12 @@ in import-to-jellyfin = callPackage ./import-to-jellyfin.nix { }; mounter = callPackage ./mounter.nix { }; move-firefox-screenshots = callPackage ./move-firefox-screenshots.nix { }; - notes = callPackage ./notes { }; passmenu-otp = callPackage ./passmenu-otp.nix { }; set-background = callPackage ./set-background.nix { }; tag-release = callPackage ./tag-release.nix { }; time-until = callPackage ./time-until.nix { }; timer = callPackage ./timer.nix { }; tmux-sessionizer = callPackage ./tmux-sessionizer { }; - todos-add = callPackage ./todos-add.nix { }; - todos-edit = callPackage ./todos-edit.nix { }; unmounter = callPackage ./unmounter.nix { }; update-all-git-repos = callPackage ./update-all-git-repos.nix { }; vic = callPackage ./vic.nix { inherit inputs; }; diff --git a/packages/notes/default.nix b/packages/notes/default.nix deleted file mode 100644 index 0bf50ea4..00000000 --- a/packages/notes/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ pkgs, ... }: - -with pkgs; - -stdenv.mkDerivation rec { - pname = "notes"; - version = "unstable-2024-12-07"; - - src = fetchFromGitHub { - owner = "nickjj"; - repo = "notes"; - rev = "f4f0aab865c19132484a2c3998cd984bdb3b9514"; - sha256 = "sha256-y5SkS+22tW9wf3gH26NHSnrnJ0rkBWSgKvansP8Hlbg="; - }; - - buildInputs = [ bash ]; - - installPhase = '' - mkdir -p $out/bin - cp notes $out/bin/notes - chmod +x $out/bin/notes - ''; -} diff --git a/packages/todos-add.nix b/packages/todos-add.nix deleted file mode 100755 index 501f3616..00000000 --- a/packages/todos-add.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ pkgs }: - -pkgs.writeShellApplication { - name = "todos-add"; - - runtimeInputs = with pkgs; [ coreutils ]; - - text = '' - TODOS_PATH="$HOME/Documents/wiki/todo.txt" - - if [ ''${#} -eq 0 ]; then - if [ -p "/dev/stdin" ]; then - (cat; printf "\n\n") >> "''${TODOS_PATH}" - else - eval "''${TODOS_EDITOR}" "''${TODOS_PATH}" - fi - else - printf "%s\n\n" "''${*}" >> "''${TODOS_PATH}" - fi - ''; -} diff --git a/packages/todos-edit.nix b/packages/todos-edit.nix deleted file mode 100755 index f65913a4..00000000 --- a/packages/todos-edit.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ pkgs }: - -pkgs.writeShellApplication { - name = "todos-edit"; - - text = '' - exec "$EDITOR" "$HOME/Documents/wiki/todo.txt" - ''; -}