summaryrefslogtreecommitdiff
path: root/module.nix
diff options
context:
space:
mode:
authorYves Fischer <yvesf+git@xapek.org>2022-08-25 23:35:20 +0200
committerYves Fischer <yvesf+git@xapek.org>2022-08-29 18:24:17 +0200
commitb96f94887953deeb6e5888bdb7114315016147e7 (patch)
treecbb8d2b347ccff4c7be33e08498442e3b85cbce5 /module.nix
parentefc84d128aa88a49516abf3e593ea41753f57729 (diff)
downloadbatteriewarner-master.tar.gz
batteriewarner-master.zip
simplify nix build configHEADmaster
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";
- };
- };
- };
-}
-