From b96f94887953deeb6e5888bdb7114315016147e7 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 25 Aug 2022 23:35:20 +0200 Subject: simplify nix build config --- module.nix | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 module.nix (limited to 'module.nix') 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"; - }; - }; - }; -} - -- cgit v1.2.1