Remove scripts that are now in the z application
This commit is contained in:
parent
a1b3975f39
commit
dc510daa75
9 changed files with 4 additions and 198 deletions
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
|
||||
{
|
||||
action = "<cmd>silent !tmux new-window tmux-sessionizer<CR>";
|
||||
action = "<cmd>silent !tmux new-window start-tmux<CR>";
|
||||
key = "<C-f>";
|
||||
options.silent = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
{ withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "add-weight";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
psArgs@{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
coreutils
|
||||
psArgs.config.packages.today2
|
||||
psArgs.config.packages.weight
|
||||
];
|
||||
|
||||
text = ''
|
||||
echo "$(today2),$1" >> "$XDG_DOCUMENTS_DIR/notes/2-areas/health-fitness/weight.csv"
|
||||
|
||||
weight
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
runtimeInputs = with pkgs; [
|
||||
git
|
||||
psArgs.config.packages.tmux-sessionizer
|
||||
psArgs.config.packages.start-tmux
|
||||
];
|
||||
|
||||
text = ''
|
||||
|
|
@ -29,13 +29,13 @@
|
|||
user_path="$XDG_REPOS_DIR/$domain/$user"
|
||||
repo_path="$user_path/$name"
|
||||
|
||||
[[ -d "$repo_path" ]] && tmux-sessionizer "$repo_path" && exit 0
|
||||
[[ -d "$repo_path" ]] && start-tmux "$repo_path" && exit 0
|
||||
|
||||
mkdir -pv "$repo_path"
|
||||
|
||||
git clone "$repo_url" "$repo_path"
|
||||
|
||||
tmux-sessionizer "$repo_path"
|
||||
start-tmux "$repo_path"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
{ lib, withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "hnow";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
psArgs@{ pkgs, ... }:
|
||||
let
|
||||
now = withSystem pkgs.system (psArgs: psArgs.config.packages.now);
|
||||
in
|
||||
{
|
||||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = [
|
||||
psArgs.config.packages.now
|
||||
];
|
||||
|
||||
text = ''
|
||||
# Based on https://github.com/rwxrob/dot/blob/main/scripts/hnow.
|
||||
|
||||
echo "== $(${lib.getExe now} "$*")"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
{ withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "now";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = with pkgs; [ coreutils ];
|
||||
|
||||
text = ''
|
||||
# Based on https://github.com/rwxrob/dot/blob/main/scripts/now.
|
||||
|
||||
out=$(date "+%A, %B %e, %Y, %R %Z" "-d ''${*:-now}")
|
||||
|
||||
echo "''${out// / }"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
flake.modules.homeManager.base =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.file.".tmux-sessionizer".source = "${
|
||||
pkgs.writeShellApplication {
|
||||
name = ".tmux-sessionizer";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
tmux
|
||||
];
|
||||
|
||||
text = ''
|
||||
set +o errexit
|
||||
set +o nounset
|
||||
|
||||
if [[ "$PWD" == "${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/os" || "$PWD" == "${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/personal" || "$PWD" == "${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/work" ]]; then
|
||||
clear
|
||||
|
||||
return
|
||||
fi
|
||||
|
||||
tmux new-window -d -n scratch
|
||||
nvim .
|
||||
clear
|
||||
'';
|
||||
}
|
||||
}/bin/.tmux-sessionizer";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
{ withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "todo";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = with pkgs; [ coreutils ];
|
||||
|
||||
text = ''
|
||||
"$EDITOR" +3 "$TODO_FILE"
|
||||
cd "$NOTES_DIRECTORY"
|
||||
git add "$TODO_FILE"
|
||||
git commit -m "Update TODOs"
|
||||
git push
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
|
||||
home.sessionVariables.TODO_FILE = "${config.home.sessionVariables.NOTES_DIRECTORY}/todo.adoc";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
{ withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "weight";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
coreutils
|
||||
];
|
||||
|
||||
text = ''tail "$XDG_DOCUMENTS_DIR/notes/2-areas/health-fitness/weight.csv"'';
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -28,7 +28,6 @@ in
|
|||
tag-release = callPackage ./tag-release.nix { };
|
||||
time-until = callPackage ./time-until.nix { };
|
||||
timer = callPackage ./timer.nix { };
|
||||
tmux-sessionizer = callPackage ./tmux-sessionizer { };
|
||||
unmounter = callPackage ./unmounter.nix { };
|
||||
update-all-git-repos = callPackage ./update-all-git-repos.nix { };
|
||||
vic = callPackage ./vic.nix { inherit inputs; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue