nixos/chrony: add option to change state directory
This commit is contained in:
parent
2e131e1f45
commit
2aec205bd2
@ -5,7 +5,7 @@ with lib;
|
|||||||
let
|
let
|
||||||
cfg = config.services.chrony;
|
cfg = config.services.chrony;
|
||||||
|
|
||||||
stateDir = "/var/lib/chrony";
|
stateDir = cfg.directory;
|
||||||
driftFile = "${stateDir}/chrony.drift";
|
driftFile = "${stateDir}/chrony.drift";
|
||||||
keyFile = "${stateDir}/chrony.keys";
|
keyFile = "${stateDir}/chrony.keys";
|
||||||
|
|
||||||
@ -82,6 +82,12 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
directory = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/var/lib/chrony";
|
||||||
|
description = "Directory where chrony state is stored.";
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user