2020-02-07 03:09:25 +04:00
|
|
|
p: c:
|
|
|
|
with p;
|
2020-08-11 02:38:02 +04:00
|
|
|
let
|
|
|
|
writeScript = name: script:
|
|
|
|
writeTextFile {
|
|
|
|
inherit name;
|
|
|
|
text = callPackage script {
|
2021-09-16 01:03:52 +03:00
|
|
|
iconfont = c.lib.base16.theme.fonts.icon.family;
|
2020-08-11 02:38:02 +04:00
|
|
|
config = c;
|
|
|
|
};
|
|
|
|
executable = true;
|
|
|
|
checkPhase =
|
|
|
|
"${bash}/bin/bash -n $src || ${python3}/bin/python3 -m compileall $src";
|
2020-02-07 03:09:25 +04:00
|
|
|
};
|
2020-08-11 02:38:02 +04:00
|
|
|
in
|
|
|
|
builtins.mapAttrs writeScript {
|
2021-06-14 23:31:09 +03:00
|
|
|
cputemp = ./cputemp.nix;
|
2020-02-07 03:09:25 +04:00
|
|
|
weather = ./weather.nix;
|
|
|
|
df = ./df.nix;
|
|
|
|
vpn-status = ./vpn-status.nix;
|
|
|
|
}
|