summaryrefslogtreecommitdiff
path: root/module.nix
diff options
context:
space:
mode:
Diffstat (limited to 'module.nix')
-rw-r--r--module.nix21
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";
- };
- };
- };
-}
-