style: format with nix fmt

Currently uses `nixpkgs-fmt`
This commit is contained in:
reo101 2024-01-25 17:39:43 +02:00
parent a6efd4146b
commit 36e14ad3f6
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
10 changed files with 267 additions and 263 deletions

View file

@ -51,7 +51,7 @@ in
port = mkOption {
type = types.port;
default = 6567;
description =''
description = ''
Port to run the game server on
'';
};
@ -65,7 +65,8 @@ in
};
};
config = mkIf cfg.enable ( let
config = mkIf cfg.enable (
let
# mindustryJar = builtins.fetchurl {
# url = cfg.jarUrl;
# sha256 = cfg.jarSha256;
@ -103,13 +104,13 @@ in
networking.firewall =
lib.pipe
["TCP" "UDP"]
[ "TCP" "UDP" ]
[
(builtins.map
(protocol:
lib.nameValuePair
"allowed${protocol}Ports"
[cfg.port]))
[ cfg.port ]))
builtins.listToAttrs
];