Skip to content

Commit 585f8c0

Browse files
committed
feat: nix/fod firewall deployment
1 parent a319ddf commit 585f8c0

File tree

3 files changed

+52
-19
lines changed

3 files changed

+52
-19
lines changed

flake.lock

Lines changed: 35 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
44
nixpkgs_25_05.url = "github:NixOS/nixpkgs/nixos-25.05-small";
55
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
nixpkgs-unstable-helsinki.url = "github:helsinki-systems/nixpkgs/feat/nix-daemon-firewall";
67
# Why?
78
flake-parts.url = "github:hercules-ci/flake-parts";
89
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";

non-critical-infra/modules/ofborg/common.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,24 @@
55
"${inputs.infra}/modules/common.nix"
66
"${inputs.infra}/non-critical-infra/modules/common.nix"
77
./ofborg-config.nix
8+
"${inputs.nixpkgs-unstable-helsinki}/nixos/modules/services/system/nix-daemon-firewall.nix"
89
];
910

10-
nix.gc.automatic = true;
11+
nix = {
12+
gc.automatic = true;
13+
firewall = {
14+
enable = true;
15+
allowedTCPPorts = [
16+
21 # access to ftp files
17+
22 # fetchGit
18+
34
19+
"http"
20+
443
21+
"30000-31000"
22+
];
23+
allowedUDPPorts = [ 53 ];
24+
};
25+
};
1126

1227
# TODO wire up exporters
1328
# TODO loki

0 commit comments

Comments
 (0)