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;
default = package;
};
nixosModules.default = { lib, config, ... }:
nixosModules.default = { lib, config, pkgs, ... }:
with lib;
let
cfg = config.services.actual;
dataDir = "/var/lib/actual";
cfgFile = writeText "actual.json" (builtins.toJSON {
cfgFile = pkgs.writeText "actual.json" (builtins.toJSON {
inherit dataDir;
inherit (cfg) hostname port;
serverFiles = "${dataDir}/server-files";