1
0

Compare commits

..

No commits in common. "277c91acdf917522302f29e10f46b39221ef94f1" and "cc47515cf8289b76e2f1f56545a866e5b8de6b46" have entirely different histories.

4 changed files with 4 additions and 6 deletions

View File

@ -78,6 +78,6 @@ let
inherit dependencies;
};
in svc.secrets.subscriber.build {
watch = lib.filter (n: typeOf n=="lambda") [ username password ];
watch = [ username password ];
inherit service;
}

View File

@ -25,7 +25,6 @@ let
inherit description;
};
in {
imports = [ ../secrets ];
options = {
system.service.pppoe = mkOption {
type = liminix.lib.types.serviceDefn;

View File

@ -5,7 +5,7 @@
let
inherit (liminix.services) oneshot longrun;
inherit (builtins) length head toString;
inherit (lib) unique optional optionals;
inherit (lib) unique optional;
inherit (service) name;
watched-services = unique (map (f: f "service") watch);
@ -46,6 +46,6 @@ in service.overrideAttrs(o: {
buildInputs = (lim.orEmpty o.buildInputs) ++
optional (watched-service != null) watcher;
dependencies = (lim.orEmpty o.dependencies) ++
optionals (watched-service != null)
[ watcher watched-service ];
optional (watched-service != null) watcher ++
optional (watched-service != null) watched-service;
})

View File

@ -31,7 +31,6 @@ stdenv.mkDerivation {
echo "#!${lua}/bin/lua ${luaFlags}"
echo "package.path = ${lib.strings.escapeShellArg (concatStringsSep "" luapath)} .. package.path"
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"
fennel ${if macropath != "" then "--add-macro-path ${lib.strings.escapeShellArg macropath}" else ""} ${if correlate then "--correlate" else ""} --compile ${source}
) > ${name}.lua