From db373a8c727cad91d375b40a6c70b11ed73bdafb Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Apr 2024 13:30:45 -0400 Subject: Add nixfmt to Lint.hs nixfmt is the soon-to-be official formatter for Nix code, as per the NixOS GitHub group. So I figure I should just adopt it without worrying too much about the specifics of the formatting. I just formatted everything in one go, hence the huge diff, oh well. --- Biz/Dragons.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'Biz/Dragons.nix') diff --git a/Biz/Dragons.nix b/Biz/Dragons.nix index 6473232..2530572 100644 --- a/Biz/Dragons.nix +++ b/Biz/Dragons.nix @@ -1,14 +1,7 @@ -{ options -, lib -, config -, pkgs -, ... -}: +{ options, lib, config, pkgs, ... }: -let - cfg = config.services.dragons; -in -{ +let cfg = config.services.dragons; +in { options.services.dragons = { enable = lib.mkEnableOption "Enable the dragons service"; port = lib.mkOption { @@ -55,7 +48,7 @@ in "DEPO=${cfg.depo}" "KEEP=${cfg.keep}" ]; - EnvironmentFile="/run/dragons/env"; + EnvironmentFile = "/run/dragons/env"; KillSignal = "INT"; Type = "simple"; Restart = "on-abort"; -- cgit v1.2.3