mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
nftables
This commit is contained in:
parent
4dcea3a32e
commit
d82799ad46
3 changed files with 17 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
# core config and packages
|
# core config and packages
|
||||||
../../modules/nixos
|
../../modules/nixos
|
||||||
../../modules/nixos/core/nix-ld.nix
|
../../modules/nixos/core/nix-ld.nix
|
||||||
|
../../modules/nixos/core/nftables.nix
|
||||||
|
|
||||||
# this is a laptop
|
# this is a laptop
|
||||||
../../modules/nixos/desktop
|
../../modules/nixos/desktop
|
||||||
|
|
|
||||||
10
nixcfgs/modules/nixos/core/nftables.nix
Normal file
10
nixcfgs/modules/nixos/core/nftables.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
networking.nftables = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
networking.firewall.backend = "nftables";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
iptables-nftables-compat
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -13,6 +13,12 @@
|
||||||
nur.repos.ataraxiasjel.waydroid-script
|
nur.repos.ataraxiasjel.waydroid-script
|
||||||
waydroid-helper
|
waydroid-helper
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
firewall.trustedInterfaces = ["waydroid0"];
|
||||||
|
nat.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
packages = [pkgs.waydroid-helper];
|
packages = [pkgs.waydroid-helper];
|
||||||
services.waydroid-mount = {
|
services.waydroid-mount = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue