Attempt to fix module
This commit is contained in:
parent
ed25eca79f
commit
04fd788980
@ -5,9 +5,10 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
cfg = config.labmon;
|
||||||
settingsFormat = pkgs.format.toml { };
|
settingsFormat = pkgs.format.toml { };
|
||||||
|
|
||||||
settingsFile = settingsFormat.generate "labmon.toml" config.labmon.settings;
|
settingsFile = settingsFormat.generate "labmon.toml" cfg.labmon.settings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.labmon = {
|
options.labmon = {
|
||||||
@ -21,6 +22,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.services.labmon = {
|
systemd.services.labmon = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
@ -62,4 +64,5 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user