Compare commits
No commits in common. "277c91acdf917522302f29e10f46b39221ef94f1" and "cc47515cf8289b76e2f1f56545a866e5b8de6b46" have entirely different histories.
277c91acdf
...
cc47515cf8
@ -78,6 +78,6 @@ let
|
|||||||
inherit dependencies;
|
inherit dependencies;
|
||||||
};
|
};
|
||||||
in svc.secrets.subscriber.build {
|
in svc.secrets.subscriber.build {
|
||||||
watch = lib.filter (n: typeOf n=="lambda") [ username password ];
|
watch = [ username password ];
|
||||||
inherit service;
|
inherit service;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,6 @@ let
|
|||||||
inherit description;
|
inherit description;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [ ../secrets ];
|
|
||||||
options = {
|
options = {
|
||||||
system.service.pppoe = mkOption {
|
system.service.pppoe = mkOption {
|
||||||
type = liminix.lib.types.serviceDefn;
|
type = liminix.lib.types.serviceDefn;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
let
|
let
|
||||||
inherit (liminix.services) oneshot longrun;
|
inherit (liminix.services) oneshot longrun;
|
||||||
inherit (builtins) length head toString;
|
inherit (builtins) length head toString;
|
||||||
inherit (lib) unique optional optionals;
|
inherit (lib) unique optional;
|
||||||
inherit (service) name;
|
inherit (service) name;
|
||||||
|
|
||||||
watched-services = unique (map (f: f "service") watch);
|
watched-services = unique (map (f: f "service") watch);
|
||||||
@ -46,6 +46,6 @@ in service.overrideAttrs(o: {
|
|||||||
buildInputs = (lim.orEmpty o.buildInputs) ++
|
buildInputs = (lim.orEmpty o.buildInputs) ++
|
||||||
optional (watched-service != null) watcher;
|
optional (watched-service != null) watcher;
|
||||||
dependencies = (lim.orEmpty o.dependencies) ++
|
dependencies = (lim.orEmpty o.dependencies) ++
|
||||||
optionals (watched-service != null)
|
optional (watched-service != null) watcher ++
|
||||||
[ watcher watched-service ];
|
optional (watched-service != null) watched-service;
|
||||||
})
|
})
|
||||||
|
@ -31,7 +31,6 @@ stdenv.mkDerivation {
|
|||||||
echo "#!${lua}/bin/lua ${luaFlags}"
|
echo "#!${lua}/bin/lua ${luaFlags}"
|
||||||
echo "package.path = ${lib.strings.escapeShellArg (concatStringsSep "" luapath)} .. package.path"
|
echo "package.path = ${lib.strings.escapeShellArg (concatStringsSep "" luapath)} .. package.path"
|
||||||
echo "package.cpath = ${lib.strings.escapeShellArg (concatStringsSep "" luacpath)} .. package.cpath"
|
echo "package.cpath = ${lib.strings.escapeShellArg (concatStringsSep "" luacpath)} .. package.cpath"
|
||||||
echo "local ok, stdlib = pcall(require,'posix.stdlib'); if ok then stdlib.setenv('PATH',${lib.escapeShellArg (lib.makeBinPath packages)} .. \":\" .. os.getenv('PATH')) end"
|
|
||||||
echo "local ok, ll = pcall(require,'lualinux'); if ok then ll.setenv('PATH',${lib.escapeShellArg (lib.makeBinPath packages)} .. \":\" .. os.getenv('PATH')) end"
|
echo "local ok, ll = pcall(require,'lualinux'); if ok then ll.setenv('PATH',${lib.escapeShellArg (lib.makeBinPath packages)} .. \":\" .. os.getenv('PATH')) end"
|
||||||
fennel ${if macropath != "" then "--add-macro-path ${lib.strings.escapeShellArg macropath}" else ""} ${if correlate then "--correlate" else ""} --compile ${source}
|
fennel ${if macropath != "" then "--add-macro-path ${lib.strings.escapeShellArg macropath}" else ""} ${if correlate then "--correlate" else ""} --compile ${source}
|
||||||
) > ${name}.lua
|
) > ${name}.lua
|
||||||
|
Loading…
Reference in New Issue
Block a user