From efc84d128aa88a49516abf3e593ea41753f57729 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 25 Aug 2022 22:55:03 +0200 Subject: apply nixpkgs-fmt on .nix files --- module.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'module.nix') diff --git a/module.nix b/module.nix index 88bc2fd..c08a64a 100644 --- a/module.nix +++ b/module.nix @@ -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"; }; }; - } + }; +} -- cgit v1.2.1