mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
add iptables settings for oracle reboot
This commit is contained in:
parent
19de583433
commit
90bc2ecd49
@ -20,6 +20,7 @@ nixpkgs.lib.nixosSystem {
|
|||||||
../common.nix
|
../common.nix
|
||||||
../../modules/nixos
|
../../modules/nixos
|
||||||
../../modules/hardware/server.nix
|
../../modules/hardware/server.nix
|
||||||
|
../../modules/services/oracle.nix
|
||||||
../../modules/services/sshd.nix
|
../../modules/services/sshd.nix
|
||||||
../../modules/services/calibre.nix
|
../../modules/services/calibre.nix
|
||||||
];
|
];
|
||||||
|
9
modules/services/oracle.nix
Normal file
9
modules/services/oracle.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
|
# Needs to be run at boot for Oracle firewall
|
||||||
|
systemd.services.openIpTables = {
|
||||||
|
script = "${pkgs.iptables}/bin/iptables -I INPUT -j ACCEPT";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user