File tree Expand file tree Collapse file tree 3 files changed +52
-19
lines changed
non-critical-infra/modules/ofborg Expand file tree Collapse file tree 3 files changed +52
-19
lines changed Original file line number Diff line number Diff line change 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" ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments