aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/sources/scripts
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-23 13:26:22 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-23 13:26:22 +0200
commit204731c0a69136c9cebcb54f1afecf5145e26bbe (patch)
treefc9132e5dc74e4a8e1327cdd411839a90f9410aa /pkgs/sources/scripts
parentrefactor(sys): Modularize and move to `modules/system` or `pkgs` (diff)
downloadnixos-config-204731c0a69136c9cebcb54f1afecf5145e26bbe.zip
refactor(pkgs): Categorize into `by-name` shards
This might not be the perfect way to organize a package set -- especially if the set is not nearly the size of nixpkgs -- but it is _at_ least a way of organization.
Diffstat (limited to '')
-rwxr-xr-xpkgs/by-name/au/aumo/aumo.sh (renamed from pkgs/sources/scripts/source/apps/aumo.sh)0
-rwxr-xr-xpkgs/by-name/ba/battery/battery.sh (renamed from pkgs/sources/scripts/source/wrappers/battery.sh)0
-rwxr-xr-xpkgs/by-name/br/brightness/brightness.sh (renamed from pkgs/sources/scripts/source/small_functions/brightness.sh)0
-rwxr-xr-xpkgs/by-name/co/con2pdf/con2pdf.sh (renamed from pkgs/sources/scripts/source/apps/con2pdf.sh)0
-rwxr-xr-xpkgs/by-name/de/description/description.sh (renamed from pkgs/sources/scripts/source/specific/ytcc/description.sh)0
-rw-r--r--pkgs/by-name/fu/fupdate/fupdate.1.md (renamed from pkgs/sources/scripts/source/apps/fupdate.1.md)0
-rwxr-xr-xpkgs/by-name/fu/fupdate/fupdate.sh (renamed from pkgs/sources/scripts/source/apps/fupdate.sh)0
-rwxr-xr-xpkgs/by-name/gi/git-edit-index/git-edit-index.sh (renamed from pkgs/sources/scripts/source/apps/git-edit-index.sh)0
-rwxr-xr-xpkgs/by-name/hi/hibernate/hibernate.sh (renamed from pkgs/sources/scripts/source/wrappers/hibernate.sh)0
-rwxr-xr-xpkgs/by-name/ll/ll/ll.sh (renamed from pkgs/sources/scripts/source/wrappers/ll.sh)0
-rwxr-xr-xpkgs/by-name/lo/lock/lock.sh (renamed from pkgs/sources/scripts/source/wrappers/lock.sh)0
-rwxr-xr-xpkgs/by-name/ly/lyrics/lyrics.sh (renamed from pkgs/sources/scripts/source/wrappers/lyrics.sh)0
-rwxr-xr-xpkgs/by-name/mp/mpc-fav/mpc-fav.sh (renamed from pkgs/sources/scripts/source/wrappers/mpc-fav.sh)0
-rwxr-xr-xpkgs/by-name/mp/mpc-rm/mpc-rm.sh (renamed from pkgs/sources/scripts/source/wrappers/mpc-rm.sh)0
-rwxr-xr-xpkgs/by-name/mp/mpc/mpc.sh (renamed from pkgs/sources/scripts/source/wrappers/mpc.sh)0
-rwxr-xr-xpkgs/by-name/na/nato/nato.py (renamed from pkgs/sources/scripts/source/small_functions/nato.py)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/add.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/add.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/context.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/context.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/dmenu.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/dmenu.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/f_start.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/f_start.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/f_stop.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/f_stop.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/list.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/list.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/project.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/project.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/review.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/review.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/utils.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/utils.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/functions/workspace.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/functions/workspace.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/main.sh (renamed from pkgs/sources/scripts/source/specific/neorg/sh/main.sh)0
-rwxr-xr-xpkgs/by-name/ne/neorg/neorg_id_function.sh (renamed from pkgs/sources/scripts/source/specific/neorg/neorg_id_function.sh)0
-rwxr-xr-xpkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh (renamed from pkgs/sources/scripts/source/small_functions/screenshot_persistent.sh)0
-rwxr-xr-xpkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh (renamed from pkgs/sources/scripts/source/small_functions/screenshot_temporary.sh)0
-rwxr-xr-xpkgs/by-name/sh/show/show.sh (renamed from pkgs/sources/scripts/source/wrappers/show.sh)0
-rwxr-xr-xpkgs/by-name/so/sort_song/sort_song.sh (renamed from pkgs/sources/scripts/source/wrappers/sort_song.sh)0
-rwxr-xr-xpkgs/by-name/sp/spodi/sh/download.sh (renamed from pkgs/sources/scripts/source/specific/spodi/sh/download.sh)0
-rwxr-xr-xpkgs/by-name/sp/spodi/sh/update.sh (renamed from pkgs/sources/scripts/source/specific/spodi/sh/update.sh)0
-rwxr-xr-xpkgs/by-name/sp/spodi/spodi.sh (renamed from pkgs/sources/scripts/source/specific/spodi/spodi.sh)0
-rwxr-xr-xpkgs/by-name/up/update-sys/update-sys.sh (renamed from pkgs/sources/scripts/source/small_functions/update-sys.sh)0
-rwxr-xr-xpkgs/by-name/vi/virsh-del/virsh-del.sh (renamed from pkgs/sources/scripts/source/wrappers/virsh-del.sh)0
-rwxr-xr-xpkgs/by-name/yt/yti/yti.sh (renamed from pkgs/sources/scripts/source/wrappers/yti.sh)0
-rw-r--r--pkgs/sources/scripts/default.nix412
39 files changed, 0 insertions, 412 deletions
diff --git a/pkgs/sources/scripts/source/apps/aumo.sh b/pkgs/by-name/au/aumo/aumo.sh
index 84d39deb..84d39deb 100755
--- a/pkgs/sources/scripts/source/apps/aumo.sh
+++ b/pkgs/by-name/au/aumo/aumo.sh
diff --git a/pkgs/sources/scripts/source/wrappers/battery.sh b/pkgs/by-name/ba/battery/battery.sh
index e650ba5d..e650ba5d 100755
--- a/pkgs/sources/scripts/source/wrappers/battery.sh
+++ b/pkgs/by-name/ba/battery/battery.sh
diff --git a/pkgs/sources/scripts/source/small_functions/brightness.sh b/pkgs/by-name/br/brightness/brightness.sh
index a7272279..a7272279 100755
--- a/pkgs/sources/scripts/source/small_functions/brightness.sh
+++ b/pkgs/by-name/br/brightness/brightness.sh
diff --git a/pkgs/sources/scripts/source/apps/con2pdf.sh b/pkgs/by-name/co/con2pdf/con2pdf.sh
index 08bf8998..08bf8998 100755
--- a/pkgs/sources/scripts/source/apps/con2pdf.sh
+++ b/pkgs/by-name/co/con2pdf/con2pdf.sh
diff --git a/pkgs/sources/scripts/source/specific/ytcc/description.sh b/pkgs/by-name/de/description/description.sh
index ae9107b9..ae9107b9 100755
--- a/pkgs/sources/scripts/source/specific/ytcc/description.sh
+++ b/pkgs/by-name/de/description/description.sh
diff --git a/pkgs/sources/scripts/source/apps/fupdate.1.md b/pkgs/by-name/fu/fupdate/fupdate.1.md
index 710e8fb7..710e8fb7 100644
--- a/pkgs/sources/scripts/source/apps/fupdate.1.md
+++ b/pkgs/by-name/fu/fupdate/fupdate.1.md
diff --git a/pkgs/sources/scripts/source/apps/fupdate.sh b/pkgs/by-name/fu/fupdate/fupdate.sh
index 4322610a..4322610a 100755
--- a/pkgs/sources/scripts/source/apps/fupdate.sh
+++ b/pkgs/by-name/fu/fupdate/fupdate.sh
diff --git a/pkgs/sources/scripts/source/apps/git-edit-index.sh b/pkgs/by-name/gi/git-edit-index/git-edit-index.sh
index e73dc53c..e73dc53c 100755
--- a/pkgs/sources/scripts/source/apps/git-edit-index.sh
+++ b/pkgs/by-name/gi/git-edit-index/git-edit-index.sh
diff --git a/pkgs/sources/scripts/source/wrappers/hibernate.sh b/pkgs/by-name/hi/hibernate/hibernate.sh
index 30868fd1..30868fd1 100755
--- a/pkgs/sources/scripts/source/wrappers/hibernate.sh
+++ b/pkgs/by-name/hi/hibernate/hibernate.sh
diff --git a/pkgs/sources/scripts/source/wrappers/ll.sh b/pkgs/by-name/ll/ll/ll.sh
index f689ba44..f689ba44 100755
--- a/pkgs/sources/scripts/source/wrappers/ll.sh
+++ b/pkgs/by-name/ll/ll/ll.sh
diff --git a/pkgs/sources/scripts/source/wrappers/lock.sh b/pkgs/by-name/lo/lock/lock.sh
index 3101ef9a..3101ef9a 100755
--- a/pkgs/sources/scripts/source/wrappers/lock.sh
+++ b/pkgs/by-name/lo/lock/lock.sh
diff --git a/pkgs/sources/scripts/source/wrappers/lyrics.sh b/pkgs/by-name/ly/lyrics/lyrics.sh
index 02a147c8..02a147c8 100755
--- a/pkgs/sources/scripts/source/wrappers/lyrics.sh
+++ b/pkgs/by-name/ly/lyrics/lyrics.sh
diff --git a/pkgs/sources/scripts/source/wrappers/mpc-fav.sh b/pkgs/by-name/mp/mpc-fav/mpc-fav.sh
index 795a4875..795a4875 100755
--- a/pkgs/sources/scripts/source/wrappers/mpc-fav.sh
+++ b/pkgs/by-name/mp/mpc-fav/mpc-fav.sh
diff --git a/pkgs/sources/scripts/source/wrappers/mpc-rm.sh b/pkgs/by-name/mp/mpc-rm/mpc-rm.sh
index 94e0634b..94e0634b 100755
--- a/pkgs/sources/scripts/source/wrappers/mpc-rm.sh
+++ b/pkgs/by-name/mp/mpc-rm/mpc-rm.sh
diff --git a/pkgs/sources/scripts/source/wrappers/mpc.sh b/pkgs/by-name/mp/mpc/mpc.sh
index 5aae5cdb..5aae5cdb 100755
--- a/pkgs/sources/scripts/source/wrappers/mpc.sh
+++ b/pkgs/by-name/mp/mpc/mpc.sh
diff --git a/pkgs/sources/scripts/source/small_functions/nato.py b/pkgs/by-name/na/nato/nato.py
index e9d15f56..e9d15f56 100755
--- a/pkgs/sources/scripts/source/small_functions/nato.py
+++ b/pkgs/by-name/na/nato/nato.py
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/add.sh b/pkgs/by-name/ne/neorg/functions/add.sh
index 5a830a10..5a830a10 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/add.sh
+++ b/pkgs/by-name/ne/neorg/functions/add.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/context.sh b/pkgs/by-name/ne/neorg/functions/context.sh
index 7095847d..7095847d 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/context.sh
+++ b/pkgs/by-name/ne/neorg/functions/context.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/dmenu.sh b/pkgs/by-name/ne/neorg/functions/dmenu.sh
index 5a138982..5a138982 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/dmenu.sh
+++ b/pkgs/by-name/ne/neorg/functions/dmenu.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/f_start.sh b/pkgs/by-name/ne/neorg/functions/f_start.sh
index 2423dd44..2423dd44 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/f_start.sh
+++ b/pkgs/by-name/ne/neorg/functions/f_start.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/f_stop.sh b/pkgs/by-name/ne/neorg/functions/f_stop.sh
index e4ff0b94..e4ff0b94 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/f_stop.sh
+++ b/pkgs/by-name/ne/neorg/functions/f_stop.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/list.sh b/pkgs/by-name/ne/neorg/functions/list.sh
index 10659457..10659457 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/list.sh
+++ b/pkgs/by-name/ne/neorg/functions/list.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/project.sh b/pkgs/by-name/ne/neorg/functions/project.sh
index 64591850..64591850 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/project.sh
+++ b/pkgs/by-name/ne/neorg/functions/project.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/review.sh b/pkgs/by-name/ne/neorg/functions/review.sh
index a0a9ab8d..a0a9ab8d 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/review.sh
+++ b/pkgs/by-name/ne/neorg/functions/review.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/utils.sh b/pkgs/by-name/ne/neorg/functions/utils.sh
index c3843e8e..c3843e8e 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/utils.sh
+++ b/pkgs/by-name/ne/neorg/functions/utils.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/functions/workspace.sh b/pkgs/by-name/ne/neorg/functions/workspace.sh
index d5eb2fca..d5eb2fca 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/functions/workspace.sh
+++ b/pkgs/by-name/ne/neorg/functions/workspace.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/sh/main.sh b/pkgs/by-name/ne/neorg/main.sh
index 559351b9..559351b9 100755
--- a/pkgs/sources/scripts/source/specific/neorg/sh/main.sh
+++ b/pkgs/by-name/ne/neorg/main.sh
diff --git a/pkgs/sources/scripts/source/specific/neorg/neorg_id_function.sh b/pkgs/by-name/ne/neorg/neorg_id_function.sh
index 865ecacf..865ecacf 100755
--- a/pkgs/sources/scripts/source/specific/neorg/neorg_id_function.sh
+++ b/pkgs/by-name/ne/neorg/neorg_id_function.sh
diff --git a/pkgs/sources/scripts/source/small_functions/screenshot_persistent.sh b/pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh
index 4308b8d2..4308b8d2 100755
--- a/pkgs/sources/scripts/source/small_functions/screenshot_persistent.sh
+++ b/pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh
diff --git a/pkgs/sources/scripts/source/small_functions/screenshot_temporary.sh b/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh
index 8968ca79..8968ca79 100755
--- a/pkgs/sources/scripts/source/small_functions/screenshot_temporary.sh
+++ b/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh
diff --git a/pkgs/sources/scripts/source/wrappers/show.sh b/pkgs/by-name/sh/show/show.sh
index ae2bdb13..ae2bdb13 100755
--- a/pkgs/sources/scripts/source/wrappers/show.sh
+++ b/pkgs/by-name/sh/show/show.sh
diff --git a/pkgs/sources/scripts/source/wrappers/sort_song.sh b/pkgs/by-name/so/sort_song/sort_song.sh
index e2978507..e2978507 100755
--- a/pkgs/sources/scripts/source/wrappers/sort_song.sh
+++ b/pkgs/by-name/so/sort_song/sort_song.sh
diff --git a/pkgs/sources/scripts/source/specific/spodi/sh/download.sh b/pkgs/by-name/sp/spodi/sh/download.sh
index fe9746c8..fe9746c8 100755
--- a/pkgs/sources/scripts/source/specific/spodi/sh/download.sh
+++ b/pkgs/by-name/sp/spodi/sh/download.sh
diff --git a/pkgs/sources/scripts/source/specific/spodi/sh/update.sh b/pkgs/by-name/sp/spodi/sh/update.sh
index a289cf58..a289cf58 100755
--- a/pkgs/sources/scripts/source/specific/spodi/sh/update.sh
+++ b/pkgs/by-name/sp/spodi/sh/update.sh
diff --git a/pkgs/sources/scripts/source/specific/spodi/spodi.sh b/pkgs/by-name/sp/spodi/spodi.sh
index 475fd48a..475fd48a 100755
--- a/pkgs/sources/scripts/source/specific/spodi/spodi.sh
+++ b/pkgs/by-name/sp/spodi/spodi.sh
diff --git a/pkgs/sources/scripts/source/small_functions/update-sys.sh b/pkgs/by-name/up/update-sys/update-sys.sh
index d28247f6..d28247f6 100755
--- a/pkgs/sources/scripts/source/small_functions/update-sys.sh
+++ b/pkgs/by-name/up/update-sys/update-sys.sh
diff --git a/pkgs/sources/scripts/source/wrappers/virsh-del.sh b/pkgs/by-name/vi/virsh-del/virsh-del.sh
index c3de5484..c3de5484 100755
--- a/pkgs/sources/scripts/source/wrappers/virsh-del.sh
+++ b/pkgs/by-name/vi/virsh-del/virsh-del.sh
diff --git a/pkgs/sources/scripts/source/wrappers/yti.sh b/pkgs/by-name/yt/yti/yti.sh
index a69ffa74..a69ffa74 100755
--- a/pkgs/sources/scripts/source/wrappers/yti.sh
+++ b/pkgs/by-name/yt/yti/yti.sh
diff --git a/pkgs/sources/scripts/default.nix b/pkgs/sources/scripts/default.nix
deleted file mode 100644
index 09c8d411..00000000
--- a/pkgs/sources/scripts/default.nix
+++ /dev/null
@@ -1,412 +0,0 @@
-{
- sysLib,
- homeConfig,
- nixosConfig,
-}: [
- (
- final: prev: let
- inherit (prev) lib;
-
- write_shell = {
- name,
- path,
- dependencies ? [],
- keepPath ? false,
- completions ? false,
- }:
- sysLib.writeShellScript {
- inherit name keepPath;
- src = ./source/${path}/${name}.sh;
- dependencies = dependencies ++ [prev.dash];
- generateCompletions = completions;
- };
- write_python = {
- name,
- path,
- dependencies_system ? [],
- dependencies_python ? _: [],
- keepPath ? false,
- }: let
- src = ./source/${path}/${name}.py;
- dependencies =
- [(prev.python3.withPackages dependencies_python)]
- ++ dependencies_system;
- path_setting =
- if keepPath
- then "--prefix PATH :"
- else "--set PATH";
- in
- prev.runCommandLocal name {
- nativeBuildInputs = [prev.makeWrapper] ++ dependencies;
- }
- ''
- install -m755 ${src} -D "$out/bin/${name}"
- patchShebangs "$out/bin/${name}"
- wrapProgram "$out/bin/${name}" ${path_setting} ${prev.lib.makeBinPath dependencies};
- '';
-
- ## Begin of shell scripts
- aumo-scr = write_shell {
- name = "aumo";
- path = "apps";
- dependencies = builtins.attrValues {
- inherit
- (prev)
- udisks
- findutils
- rofi
- ;
- };
- };
-
- battery-scr = write_shell {
- name = "battery";
- path = "wrappers";
- dependencies = [];
- };
-
- brightness-scr = lib.mkIf nixosConfig.soispha.laptop.enable (write_shell {
- name = "brightness";
- path = "small_functions";
- generateCompletions = true;
- dependencies = [];
- replacementStrings = {BACKLIGHT_NAME = nixosConfig.soispha.laptop.backlight;};
- });
-
- con2pdf-scr = sysLib.writeShellScript {
- name = "con2pdf";
- src = ./source/apps/con2pdf.sh;
- dependencies = builtins.attrValues {inherit (prev) sane-backends imagemagick coreutils fd;};
- generateCompletions = true;
- replacementStrings = {
- DEVICE_FUNCTION =
- # This is here, because escaping the whole function, to use it in the shell script
- # directly just isn't possible
- prev.writeText "DEVICE_FUNCTION"
- /*
- bash
- */
- ''
- scanimage -L | awk 'BEGIN { FS = "`" } { gsub(/'.*/, "", $2); print $2 }'
- '';
- };
- };
-
- description-scr = write_shell {
- name = "description";
- path = "specific/ytcc";
- dependencies = builtins.attrValues {
- inherit (prev) jq fmt less locale;
- };
- };
-
- fupdate-scr = write_shell {
- name = "fupdate";
- path = "apps";
- keepPath = true;
- completions = true;
- dependencies = builtins.attrValues {
- inherit
- (prev)
- dash
- nix
- gnugrep
- fd
- coreutils
- bat # used by batgrep
- gnused # required by batgrep
- git # needed to fetch through git
- ;
- inherit (prev.bat-extras) batgrep;
- };
- };
-
- git-edit-index-scr = write_shell {
- name = "git-edit-index";
- path = "apps";
- completions = true;
- # This starts neovim, wich might want to shell out
- keepPath = true;
- dependencies = builtins.attrValues {
- inherit
- (prev)
- git
- gnused
- # $EDITOR
-
- ;
- };
- };
-
- hibernate-scr = write_shell {
- name = "hibernate";
- path = "wrappers";
- dependencies = builtins.attrValues {
- inherit
- (prev)
- systemd
- taskwarrior
- ;
- };
- };
-
- ll-scr = sysLib.writeShellScript {
- name = "ll";
- src = ./source/wrappers/ll.sh;
- wrap = false;
- };
-
- # TODO: this need to be replaced with a wayland alternative
- # llp-scr = write_shell {
- # name = "llp";
- # path = "wrappers";
- # dependencies = builtins.attrValues {inherit (prev) lf ueberzug;};
- # };
-
- lock-scr = write_shell {
- name = "lock";
- path = "wrappers";
- dependencies = builtins.attrValues {
- inherit
- (prev)
- taskwarrior
- swaylock
- ;
- };
- };
-
- lyrics-scr = write_shell {
- name = "lyrics";
- path = "wrappers";
- dependencies = builtins.attrValues {
- inherit
- (prev)
- exiftool
- mpc-cli
- jq
- less
- locale # dependency of less
- ;
- };
- };
-
- mpc-fav-scr = write_shell {
- name = "mpc-fav";
- path = "wrappers";
- dependencies = builtins.attrValues {
- inherit
- (prev)
- mpc-cli
- ;
- };
- };
-
- mpc-rm-scr = write_shell {
- name = "mpc-rm";
- path = "wrappers";
- dependencies = builtins.attrValues {
- inherit
- (prev)
- mpc-cli
- trash-cli
- ;
- };
- };
-
- mpc-scr = write_shell {
- name = "mpc";
- path = "wrappers";
- dependencies = [
- mpc-fav-scr
- mpc-rm-scr
- prev.mpc-cli
- ];
- };
-
- nato-scr = write_python {
- name = "nato";
- path = "small_functions";
- dependencies_python = ps: [];
- };
-
- neorg-scr = sysLib.writeShellScriptMultiPart {
- name = "neorg";
- keepPath = true;
- src = ./source/specific/neorg/sh;
- baseName = "main.sh";
- cmdPrefix = "functions";
- cmdNames = [
- "add.sh"
- "context.sh"
- "dmenu.sh"
- "f_start.sh"
- "f_stop.sh"
- "list.sh"
- "project.sh"
- "review.sh"
- "utils.sh"
- "workspace.sh"
- ];
- dependencies = with prev; [
- cocogitto
- rofi
- libnotify
- ];
- generateCompletions = true;
- replacementStrings = {
- DEFAULT_NEORG_PROJECT_DIR =
- homeConfig.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces.projects;
- HOME_TASKRC = "${homeConfig.xdg.configHome}/task/home-manager-taskrc";
- NEORG_REVIEW_PATH = "${homeConfig.xdg.dataHome}/neorg/review";
- ALL_PROJECTS_NEWLINE = "${homeConfig.soispha.taskwarrior.projects.projects_newline}";
- ALL_PROJECTS_COMMA = "${homeConfig.soispha.taskwarrior.projects.projects_comma}";
- ALL_PROJECTS_PIPE = "${homeConfig.soispha.taskwarrior.projects.projects_pipe}";
- ALL_WORKSPACES = "${lib.strings.concatStringsSep "|" (builtins.attrNames homeConfig.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces)}";
- ID_GENERATION_FUNCTION = "${sysLib.writeShellScript {
- name = "neorg_id_function";
- src = ./source/specific/neorg/neorg_id_function.sh;
- dependencies = with prev; [
- taskwarrior
- gawk
- findutils # xargs
- ];
- }}/bin/neorg_id_function";
-
- # TODO: Replace the hard-coded path here with some reference <2023-10-20>
- TASK_PROJECT_FILE = "/home/soispha/repos/nix/nixos-config/hm/soispha/conf/taskwarrior/projects/default.nix";
- };
- };
-
- screenshot_persistent-scr = write_shell {
- name = "screenshot_persistent";
- path = "small_functions";
- keepPath = true;
- dependencies = builtins.attrValues {
- inherit
- (prev)
- grim
- slurp
- alacritty
- rofi
- libnotify
- lf # TODO: add llp
- ;
- };
- };
-
- screenshot_temporary-scr = write_shell {
- name = "screenshot_temporary";
- path = "small_functions";
- dependencies = builtins.attrValues {inherit (prev) grim slurp wl-clipboard;};
- };
-
- show-scr = write_shell {
- name = "show";
- path = "wrappers";
- keepPath = true; # I might want to use nvim in less (and shell escapes)
- dependencies = builtins.attrValues {inherit (prev) less locale;};
- };
-
- sort_song-scr = write_shell {
- name = "sort_song";
- path = "wrappers";
- dependencies = builtins.attrValues {inherit (prev) mediainfo jq gawk;};
- };
-
- spodi-scr = sysLib.writeShellScriptMultiPart {
- name = "spodi";
- keepPath = false;
- src = ./source/specific/spodi;
- baseName = "spodi.sh";
- cmdPrefix = "sh";
- cmdNames = [
- "download.sh"
- "update.sh"
- ];
- dependencies = with prev; [
- gawk
- expect
- spotdl
- fd
- coreutils
- ];
- generateCompletions = true;
- replacementStrings = {
- XDG_CACHE_HOME = homeConfig.xdg.cacheHome;
- XDG_MUSIC_DIR = homeConfig.xdg.userDirs.music;
- };
- };
-
- update-sys-scr = write_shell {
- name = "update-sys";
- path = "small_functions";
- completions = true;
- dependencies = builtins.attrValues {
- inherit
- (prev)
- git
- nixos-rebuild
- sudo
- openssh
- coreutils
- mktemp
- gnugrep
- gnused
- systemd
- ;
- };
- };
-
- virsh-del-scr = write_shell {
- name = "virsh-del";
- path = "wrappers";
- dependencies = builtins.attrValues {inherit (prev) libvirt;};
- };
-
- yti-scr = write_shell {
- name = "yti";
- path = "wrappers";
- dependencies = builtins.attrValues {inherit (prev) gawk expect yt-dlp;};
- };
- in {
- scripts = {
- # llp = llp-scr; # TODO: see above
- aumo = aumo-scr;
- battery = battery-scr;
- brightness = brightness-scr;
- con2pdf = con2pdf-scr;
- description = description-scr;
- fupdate = fupdate-scr;
- git-edit-index = git-edit-index-scr;
- hibernate = hibernate-scr;
- ll = ll-scr;
- lock = lock-scr;
- lyrics = lyrics-scr;
- mpc = mpc-scr;
- mpc-fav = mpc-fav-scr;
- mpc-rm = mpc-rm-scr;
- nato = nato-scr;
- neorg = neorg-scr;
- screenshot_persistent = screenshot_persistent-scr;
- screenshot_temporary = screenshot_temporary-scr;
- show = show-scr;
- sort_song = sort_song-scr;
- spodi = spodi-scr;
- update-sys = update-sys-scr;
- virsh-del = virsh-del-scr;
- yti = yti-scr;
- };
- }
- )
-]
-
-
- pkgs = import nixpkgs (import ./sys/nixpkgs {
- inherit (nixpkgs) lib;
- inherit system sysLib;
-
- # FIXME: Don't unconditionally use tiamat here <2024-02-24>
- homeConfig = self.nixosConfigurations.tiamat.config.home-manager.users.soispha;
- nixosConfig = self.nixosConfigurations.tiamat.config;
- overlays = [];
- });