diff options
Diffstat (limited to 'module.nix')
-rw-r--r-- | module.nix | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1,21 +1,21 @@ { config, lib, pkgs, ... }: let - package = pkgs.callPackage ./. {}; + 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"; - }; +{ + 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"; }; }; - } + }; +} |