summaryrefslogtreecommitdiff
path: root/pkgs/lib/home-manager
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/lib/home-manager')
-rw-r--r--pkgs/lib/home-manager/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/lib/home-manager/default.nix b/pkgs/lib/home-manager/default.nix
index ad3878f..e07e0b8 100644
--- a/pkgs/lib/home-manager/default.nix
+++ b/pkgs/lib/home-manager/default.nix
@@ -1,12 +1,22 @@
{ }:
{
- serviceWithTimer = name:
- { Unit, Service, Timer, Install, ... }@config: {
+ serviceWithTimer =
+ name:
+ {
+ Unit,
+ Service,
+ Timer,
+ Install,
+ ...
+ }@config:
+ {
services.${name} = { inherit (config) Unit Install Service; };
timers.${name} = {
inherit (config) Unit Install;
- Timer = config.Timer // { Unit = "${name}.service"; };
+ Timer = config.Timer // {
+ Unit = "${name}.service";
+ };
};
};
}