Loading nixos/modules/services/networking/hylafax/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ ]; config = lib.modules.mkIf config.services.hylafax.enable { environment.systemPackages = [ pkgs.hylafaxplus ]; environment.systemPackages = [ config.services.hylafax.package ]; users.users.uucp = { uid = config.ids.uids.uucp; group = "uucp"; Loading nixos/modules/services/networking/hylafax/options.nix +3 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ let mkIf mkMerge mkOption mkPackageOption ; inherit (lib.types) attrsOf Loading Loading @@ -143,6 +144,8 @@ in enable = mkEnableOption "HylaFAX server"; package = mkPackageOption pkgs "HylaFAX" { default = "hylafaxplus"; }; autostart = mkOption { type = bool; default = true; Loading nixos/modules/services/networking/hylafax/spool.sh +2 −2 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ touch clientlog faxcron.lastrun xferfaxlog chown @faxuser@:@faxgroup@ clientlog faxcron.lastrun xferfaxlog # create symlinks for frozen directories/files lnsym --target-directory=. "@hylafaxplus@"/spool/{COPYRIGHT,bin,config} lnsym --target-directory=. "@package@"/spool/{COPYRIGHT,bin,config} # create empty temporary directories update --mode=0700 -d client dev status Loading @@ -93,7 +93,7 @@ install -d "@spoolAreaPath@/etc" cd "@spoolAreaPath@/etc" # create symlinks to all files in template's etc lnsym --target-directory=. "@hylafaxplus@/spool/etc"/* lnsym --target-directory=. "@package@/spool/etc"/* # set LOCKDIR in setup.cache sed --regexp-extended 's|^(UUCP_LOCKDIR=).*$|\1'"'@lockPath@'|g" --in-place setup.cache Loading nixos/modules/services/networking/hylafax/systemd.nix +4 −4 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ let mkSpoolCmd = prefix: program: posArg: options: let start = "${prefix}${pkgs.hylafaxplus}/spool/bin/${program}"; start = "${prefix}${cfg.package}/spool/bin/${program}"; optionsList = toGNUCommandLine { mkOptionName = k: "-${k}"; } ( { q = cfg.spoolAreaPath; } // options ); Loading Loading @@ -54,7 +54,7 @@ let { name, type, ... }@modem: '' # check if modem config file exists: test -f "${pkgs.hylafaxplus}/spool/config/${type}" test -f "${cfg.package}/spool/config/${type}" ln \ --symbolic \ --no-target-directory \ Loading @@ -75,8 +75,8 @@ let faxgroup = "uucp"; lockPath = "/var/lock"; inherit globalConfigPath modemConfigPath; inherit (cfg) spoolAreaPath userAccessFile; inherit (pkgs) hylafaxplus runtimeShell; inherit (cfg) package spoolAreaPath userAccessFile; inherit (pkgs) runtimeShell; }; }; Loading Loading
nixos/modules/services/networking/hylafax/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ ]; config = lib.modules.mkIf config.services.hylafax.enable { environment.systemPackages = [ pkgs.hylafaxplus ]; environment.systemPackages = [ config.services.hylafax.package ]; users.users.uucp = { uid = config.ids.uids.uucp; group = "uucp"; Loading
nixos/modules/services/networking/hylafax/options.nix +3 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ let mkIf mkMerge mkOption mkPackageOption ; inherit (lib.types) attrsOf Loading Loading @@ -143,6 +144,8 @@ in enable = mkEnableOption "HylaFAX server"; package = mkPackageOption pkgs "HylaFAX" { default = "hylafaxplus"; }; autostart = mkOption { type = bool; default = true; Loading
nixos/modules/services/networking/hylafax/spool.sh +2 −2 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ touch clientlog faxcron.lastrun xferfaxlog chown @faxuser@:@faxgroup@ clientlog faxcron.lastrun xferfaxlog # create symlinks for frozen directories/files lnsym --target-directory=. "@hylafaxplus@"/spool/{COPYRIGHT,bin,config} lnsym --target-directory=. "@package@"/spool/{COPYRIGHT,bin,config} # create empty temporary directories update --mode=0700 -d client dev status Loading @@ -93,7 +93,7 @@ install -d "@spoolAreaPath@/etc" cd "@spoolAreaPath@/etc" # create symlinks to all files in template's etc lnsym --target-directory=. "@hylafaxplus@/spool/etc"/* lnsym --target-directory=. "@package@/spool/etc"/* # set LOCKDIR in setup.cache sed --regexp-extended 's|^(UUCP_LOCKDIR=).*$|\1'"'@lockPath@'|g" --in-place setup.cache Loading
nixos/modules/services/networking/hylafax/systemd.nix +4 −4 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ let mkSpoolCmd = prefix: program: posArg: options: let start = "${prefix}${pkgs.hylafaxplus}/spool/bin/${program}"; start = "${prefix}${cfg.package}/spool/bin/${program}"; optionsList = toGNUCommandLine { mkOptionName = k: "-${k}"; } ( { q = cfg.spoolAreaPath; } // options ); Loading Loading @@ -54,7 +54,7 @@ let { name, type, ... }@modem: '' # check if modem config file exists: test -f "${pkgs.hylafaxplus}/spool/config/${type}" test -f "${cfg.package}/spool/config/${type}" ln \ --symbolic \ --no-target-directory \ Loading @@ -75,8 +75,8 @@ let faxgroup = "uucp"; lockPath = "/var/lock"; inherit globalConfigPath modemConfigPath; inherit (cfg) spoolAreaPath userAccessFile; inherit (pkgs) hylafaxplus runtimeShell; inherit (cfg) package spoolAreaPath userAccessFile; inherit (pkgs) runtimeShell; }; }; Loading