Remove old scripts
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
586ed07ff0
commit
471bd8ca54
9 changed files with 0 additions and 86 deletions
|
@ -25,8 +25,6 @@
|
|||
tag-release
|
||||
time-until
|
||||
timer
|
||||
todos-add
|
||||
todos-edit
|
||||
unmounter
|
||||
update-all-git-repos
|
||||
vic
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
flake.modules.homeManager.base =
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.notes.directory = "${config.xdg.userDirs.documents}/wiki/notes";
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.notes ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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'"
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -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; };
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
}
|
|
@ -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
|
||||
'';
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "todos-edit";
|
||||
|
||||
text = ''
|
||||
exec "$EDITOR" "$HOME/Documents/wiki/todo.txt"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue