This commit is contained in:
xenofem 2024-05-09 19:14:35 -04:00
parent c0cd926113
commit a760e67b6f

View file

@ -124,12 +124,12 @@
"${pname}" = package; "${pname}" = package;
default = package; default = package;
}; };
nixosModules.default = { lib, config, ... }: nixosModules.default = { lib, config, pkgs, ... }:
with lib; with lib;
let let
cfg = config.services.actual; cfg = config.services.actual;
dataDir = "/var/lib/actual"; dataDir = "/var/lib/actual";
cfgFile = writeText "actual.json" (builtins.toJSON { cfgFile = pkgs.writeText "actual.json" (builtins.toJSON {
inherit dataDir; inherit dataDir;
inherit (cfg) hostname port; inherit (cfg) hostname port;
serverFiles = "${dataDir}/server-files"; serverFiles = "${dataDir}/server-files";