blob: a647076c1738b7c1c23d93da1662f386ecec9074 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
{
pkgs,
sysLib,
...
}: let
write_script = {
name,
path,
dependencies,
}:
sysLib.makeShellScriptWithLibrary {
inherit name;
script = ./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;};
};
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.makeShellScriptWithLibraryUnwrapped {
name = "ll";
script = ./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;};
};
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
]
|