style: format with nix fmt
Currently uses `nixpkgs-fmt`
This commit is contained in:
parent
a6efd4146b
commit
36e14ad3f6
10 changed files with 267 additions and 263 deletions
|
@ -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
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue