diff options
author | Soispha <soispha@vhack.eu> | 2024-02-07 20:53:03 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-02-07 20:53:03 +0100 |
commit | f2ada3ab2a75ded6c4cf2a6269f0ce4553e9ff3f (patch) | |
tree | 669c110a77065f5d87068675a197f9b5ab6a2219 | |
parent | fix(sys/svcs/printing): Use correct printer network address (diff) | |
download | nixos-config-f2ada3ab2a75ded6c4cf2a6269f0ce4553e9ff3f.tar.gz nixos-config-f2ada3ab2a75ded6c4cf2a6269f0ce4553e9ff3f.zip |
refactor(hm/pkgs/scrs): Sort the declarations alphabetical
Diffstat (limited to '')
-rw-r--r-- | hm/soispha/pkgs/scripts.nix | 186 |
1 files changed, 104 insertions, 82 deletions
diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index ae0ee827..a7b055fa 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -43,11 +43,14 @@ wrapProgram "$out/bin/${name}" ${path_setting} ${pkgs.lib.makeBinPath dependencies}; ''; + ## Begin of shell scripts + aumo-scr = write_shell { name = "aumo"; path = "apps"; dependencies = builtins.attrValues {inherit (pkgs) udisks gawk gnused gnugrep sudo;}; }; + con2pdf-scr = sysLib.writeShellScript { name = "con2pdf"; src = ./scripts/apps/con2pdf; @@ -66,6 +69,7 @@ ''; }; }; + description-scr = write_shell { name = "description"; path = "specific/ytcc"; @@ -73,89 +77,7 @@ inherit (pkgs) jq fmt less locale; }; }; - screenshot_persistent-scr = write_shell { - name = "screenshot_persistent"; - path = "small_functions"; - keepPath = true; - dependencies = builtins.attrValues { - inherit - (pkgs) - grim - slurp - alacritty - rofi - libnotify - lf # TODO: add llp - ; - }; - }; - screenshot_temporary-scr = write_shell { - name = "screenshot_temporary"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) 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 (pkgs) less locale;}; - }; - nato-scr = write_python { - name = "nato"; - path = "small_functions"; - dependencies_python = ps: []; - }; - neorg-scr = sysLib.writeShellScriptMultiPart { - name = "neorg"; - keepPath = true; - src = ./scripts/specific/neorg/sh; - baseName = "main"; - cmdPrefix = "functions"; - cmdNames = [ - "add" - "context" - "dmenu" - "f_start" - "f_stop" - "list" - "project" - "utils" - "workspace" - ]; - dependencies = with pkgs; [ - cocogitto - git-crypt - rofi - libnotify - ]; - generateCompletions = true; - replacementStrings = { - DEFAULT_NEORG_PROJECT_DIR = - config.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces.projects; - HOME_TASKRC = "${config.xdg.configHome}/task/home-manager-taskrc"; - ALL_PROJECTS_NEWLINE = "${config.soispha.taskwarrior.projects.projects_newline}"; - ALL_PROJECTS_COMMA = "${config.soispha.taskwarrior.projects.projects_comma}"; - ALL_PROJECTS_PIPE = "${config.soispha.taskwarrior.projects.projects_pipe}"; - ALL_WORKSPACES = "${lib.strings.concatStringsSep "|" (builtins.attrNames config.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces)}"; - ID_GENERATION_FUNCTION = "${sysLib.writeShellScript { - name = "neorg_id_function"; - src = ./scripts/specific/neorg/neorg_id_function.sh; - dependencies = with pkgs; [ - 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"; - }; - }; - update-sys-scr = write_shell { - name = "update-sys"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) git git-crypt nixos-rebuild sudo openssh coreutils mktemp gnugrep gnused;}; - }; fupdate-scr = write_shell { name = "fupdate"; path = "apps"; @@ -176,6 +98,7 @@ inherit (pkgs.bat-extras) batgrep; }; }; + hibernate-scr = write_shell { name = "hibernate"; path = "wrappers"; @@ -187,17 +110,20 @@ ; }; }; + ll-scr = sysLib.writeShellScript { name = "ll"; src = ./scripts/wrappers/ll; wrap = false; }; + # TODO: this need to be replaced with a wayland alternative # llp-scr = write_shell { # name = "llp"; # path = "wrappers"; # dependencies = builtins.attrValues {inherit (pkgs) lf ueberzug;}; # }; + lock-scr = write_shell { name = "lock"; path = "wrappers"; @@ -209,6 +135,7 @@ ; }; }; + lyrics-scr = write_shell { name = "lyrics"; path = "wrappers"; @@ -223,6 +150,8 @@ ; }; }; + + mpc-rm-scr = write_shell { name = "mpc-rm"; path = "wrappers"; @@ -234,16 +163,109 @@ ; }; }; + + nato-scr = write_python { + name = "nato"; + path = "small_functions"; + dependencies_python = ps: []; + }; + + neorg-scr = sysLib.writeShellScriptMultiPart { + name = "neorg"; + keepPath = true; + src = ./scripts/specific/neorg/sh; + baseName = "main"; + cmdPrefix = "functions"; + cmdNames = [ + "add" + "context" + "dmenu" + "f_start" + "f_stop" + "list" + "project" + "utils" + "workspace" + ]; + dependencies = with pkgs; [ + cocogitto + git-crypt + rofi + libnotify + ]; + generateCompletions = true; + replacementStrings = { + DEFAULT_NEORG_PROJECT_DIR = + config.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces.projects; + HOME_TASKRC = "${config.xdg.configHome}/task/home-manager-taskrc"; + ALL_PROJECTS_NEWLINE = "${config.soispha.taskwarrior.projects.projects_newline}"; + ALL_PROJECTS_COMMA = "${config.soispha.taskwarrior.projects.projects_comma}"; + ALL_PROJECTS_PIPE = "${config.soispha.taskwarrior.projects.projects_pipe}"; + ALL_WORKSPACES = "${lib.strings.concatStringsSep "|" (builtins.attrNames config.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces)}"; + ID_GENERATION_FUNCTION = "${sysLib.writeShellScript { + name = "neorg_id_function"; + src = ./scripts/specific/neorg/neorg_id_function.sh; + dependencies = with pkgs; [ + 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 + (pkgs) + grim + slurp + alacritty + rofi + libnotify + lf # TODO: add llp + ; + }; + }; + + screenshot_temporary-scr = write_shell { + name = "screenshot_temporary"; + path = "small_functions"; + dependencies = builtins.attrValues {inherit (pkgs) 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 (pkgs) less locale;}; + }; + + spodi-scr = write_shell { name = "spodi"; path = "wrappers"; dependencies = builtins.attrValues {inherit (pkgs) gawk expect spotdl fd coreutils;}; }; + + update-sys-scr = write_shell { + name = "update-sys"; + path = "small_functions"; + dependencies = builtins.attrValues {inherit (pkgs) git git-crypt nixos-rebuild sudo openssh coreutils mktemp gnugrep gnused;}; + }; + virsh-del-scr = write_shell { name = "virsh-del"; path = "wrappers"; dependencies = builtins.attrValues {inherit (pkgs) libvirt;}; }; + yti-scr = write_shell { name = "yti"; path = "wrappers"; |