From 0a608bd781dcda40144097b007fac0a0c60a8ee1 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 1 Aug 2023 15:31:42 +0200 Subject: Refactor(treewide): Move module configuration in separate files --- home-manager/packages/scripts.nix | 97 --------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 home-manager/packages/scripts.nix (limited to 'home-manager/packages/scripts.nix') diff --git a/home-manager/packages/scripts.nix b/home-manager/packages/scripts.nix deleted file mode 100644 index 73b52d37..00000000 --- a/home-manager/packages/scripts.nix +++ /dev/null @@ -1,97 +0,0 @@ -{ - pkgs, - sysLib, - ... -}: let - write_script = { - name, - path, - dependencies, - }: - sysLib.writeShellScriptWithLibrary { - inherit name; - src = ./scripts/${path}/${name}; - dependencies = dependencies ++ [pkgs.dash]; - }; - aumo-scr = write_script { - name = "aumo"; - path = "apps"; - dependencies = builtins.attrValues {inherit (pkgs) udisks gawk gnused gnugrep sudo;}; - }; - con2pdf-scr = write_script { - name = "con2pdf"; - path = "apps"; - dependencies = builtins.attrValues {inherit (pkgs) sane-backends imagemagick coreutils fd;}; - }; - - dldragon-scr = write_script { - name = "dldragon"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) curl xdragon;}; - }; - gtk-themes-scr = write_script { - name = "gtk-themes"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) glib;}; - }; - screen_shot-scr = write_script { - name = "screen_shot"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) grim slurp alacritty;}; # TODO add llp - }; - mocs-scr = write_script { - name = "mocs"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) ncmpc procps;}; # TODO add mymocp - }; - update-sys-scr = write_script { - name = "update-sys"; - path = "small_functions"; - dependencies = builtins.attrValues {inherit (pkgs) git nixos-rebuild sudo openssh coreutils mktemp gnugrep gnused;}; - }; - - backsnap-scr = write_script { - name = "backsnap"; - path = "wrappers"; - dependencies = builtins.attrValues {}; # TODO add snap-sync - }; - ll-scr = sysLib.writeShellScriptWithLibraryUnwrapped { - name = "ll"; - src = ./scripts/wrappers/ll; - }; - # TODO this need to be replaced with a wayland alternative - # llp-scr = write_script { - # name = "llp"; - # path = "wrappers"; - # dependencies = builtins.attrValues {inherit (pkgs) lf ueberzug;}; - # }; - spodi-scr = write_script { - name = "spodi"; - path = "wrappers"; - dependencies = builtins.attrValues {inherit (pkgs) gawk expect spotdl fd coreutils;}; - }; - virsh-del-scr = write_script { - name = "virsh-del"; - path = "wrappers"; - dependencies = builtins.attrValues {inherit (pkgs) libvirt;}; - }; - yti-scr = write_script { - name = "yti"; - path = "wrappers"; - dependencies = builtins.attrValues {inherit (pkgs) gawk expect yt-dlp;}; - }; -in [ - aumo-scr - con2pdf-scr - dldragon-scr - gtk-themes-scr - screen_shot-scr - mocs-scr - update-sys-scr - backsnap-scr - ll-scr - # llp-scr # TODO see above - spodi-scr - virsh-del-scr - yti-scr -] -- cgit 1.4.1