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