summaryrefslogtreecommitdiff
path: root/Biz/Que
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-01 13:30:45 -0400
committerBen Sima <ben@bsima.me>2024-04-01 13:30:45 -0400
commitdb373a8c727cad91d375b40a6c70b11ed73bdafb (patch)
treea7ed24e98242b6e38f44cb0c9884718d248cc613 /Biz/Que
parent5c8ef1bf4dff4fc7c6e66a57673a81477bcc850a (diff)
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.
Diffstat (limited to 'Biz/Que')
-rw-r--r--Biz/Que/Host.nix14
-rw-r--r--Biz/Que/Site.nix12
2 files changed, 6 insertions, 20 deletions
diff --git a/Biz/Que/Host.nix b/Biz/Que/Host.nix
index 84bd9cc..b6b533e 100644
--- a/Biz/Que/Host.nix
+++ b/Biz/Que/Host.nix
@@ -1,13 +1,7 @@
-{ options
-, lib
-, config
-, ...
-}:
+{ options, lib, config, ... }:
-let
- cfg = config.services.que-server;
-in
-{
+let cfg = config.services.que-server;
+in {
options.services.que-server = {
enable = lib.mkEnableOption "Enable the que-server service";
port = lib.mkOption {
@@ -34,7 +28,7 @@ in
Que server
'';
serviceConfig = {
- Environment = ["QUE_PORT=${toString cfg.port}"];
+ Environment = [ "QUE_PORT=${toString cfg.port}" ];
EnvironmentFile = "/run/que/env";
KillSignal = "INT";
Type = "simple";
diff --git a/Biz/Que/Site.nix b/Biz/Que/Site.nix
index 15b058d..cc525f6 100644
--- a/Biz/Que/Site.nix
+++ b/Biz/Que/Site.nix
@@ -1,11 +1,4 @@
-{ options
-, lib
-, config
-, pkgs
-, ...
-}:
-
-
+{ options, lib, config, pkgs, ... }:
let
cfg = config.services.que-website;
@@ -22,8 +15,7 @@ let
cp ${./Client.py} $out/Client.py
'';
};
-in
-{
+in {
options.services.que-website = {
enable = lib.mkEnableOption "Enable the que-website service";
namespace = lib.mkOption {