diff options
author | Yves Fischer <yvesf+git@xapek.org> | 2022-08-25 22:55:03 +0200 |
---|---|---|
committer | Yves Fischer <yvesf+git@xapek.org> | 2022-08-25 22:55:03 +0200 |
commit | efc84d128aa88a49516abf3e593ea41753f57729 (patch) | |
tree | 7cf53a9745c1781dea80f073a7f5166e372d49f9 /module.nix | |
parent | 64f56e8acd6913a60dcad7e6203f6984b0d01ee9 (diff) | |
download | batteriewarner-efc84d128aa88a49516abf3e593ea41753f57729.tar.gz batteriewarner-efc84d128aa88a49516abf3e593ea41753f57729.zip |
apply nixpkgs-fmt on .nix files
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"; }; }; - } + }; +} |