diff options
author | Yves Fischer <yvesf+git@xapek.org> | 2022-08-25 23:35:20 +0200 |
---|---|---|
committer | Yves Fischer <yvesf+git@xapek.org> | 2022-08-29 18:24:17 +0200 |
commit | b96f94887953deeb6e5888bdb7114315016147e7 (patch) | |
tree | cbb8d2b347ccff4c7be33e08498442e3b85cbce5 /module.nix | |
parent | efc84d128aa88a49516abf3e593ea41753f57729 (diff) | |
download | batteriewarner-b96f94887953deeb6e5888bdb7114315016147e7.tar.gz batteriewarner-b96f94887953deeb6e5888bdb7114315016147e7.zip |
Diffstat (limited to 'module.nix')
-rw-r--r-- | module.nix | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/module.nix b/module.nix deleted file mode 100644 index c08a64a..0000000 --- a/module.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, lib, pkgs, ... }: -let - package = pkgs.callPackage ./. { }; - cfg = config.programs.batteriewarner; -in -{ - options.programs.batteriewarner = { - enable = lib.mkEnableOption "Batteriewarner"; - }; - config = lib.mkIf cfg.enable { - systemd.services.batteriewarner = { - enable = true; - description = "Batteriewarner"; - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - ExecStart = "${package}/bin/batteriewarner"; - }; - }; - }; -} - |