cleaning stuff up
This commit is contained in:
1 parent
12f53af7d8
commit
bf62802ffd
6 files changed
+30
-28
No files matched your search
@@ -12,6 +12,10 @@ in {
|
||||
type = lib.types.str;
|
||||
default = "daily";
|
||||
};
|
||||
wantedBy = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
});
|
||||
default = { };
|
||||
@@ -21,7 +25,10 @@ in {
|
||||
systemd.timers = builtins.mapAttrs
|
||||
(
|
||||
name: value: {
|
||||
wantedBy = [ "timers.target" ];
|
||||
wantedBy = builtins.concatLists [
|
||||
[ "timers.target" ]
|
||||
value.wantedBy
|
||||
];
|
||||
timerConfig = {
|
||||
OnCalendar = value.OnCalendar;
|
||||
Persistent = true;
|
||||
|
||||
Reference in new issue
Block a user