diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-12 18:39:54 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-15 22:13:57 +0100 |
| commit | 365a7368718fc52964eb487058a34c7a124e6989 (patch) | |
| tree | 2f9e0fe71b2edebd0a695d69025430b558da7b74 /pkgs/lib | |
| parent | 6ea803da80558e269564c99070e92e285cf977ff (diff) | |
add pkgs
Diffstat (limited to 'pkgs/lib')
| -rw-r--r-- | pkgs/lib/home-manager/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/lib/home-manager/default.nix b/pkgs/lib/home-manager/default.nix new file mode 100644 index 0000000..62db998 --- /dev/null +++ b/pkgs/lib/home-manager/default.nix @@ -0,0 +1,11 @@ +{ }: + +{ + 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"; }; + }; + }; +} |
