Compare commits
1 commit
83469322e6
...
04d7ca4865
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04d7ca4865 |
2 changed files with 1 additions and 36 deletions
|
|
@ -18,9 +18,7 @@ in
|
||||||
# systemd.tmpfiles.rules = [
|
# systemd.tmpfiles.rules = [
|
||||||
# "d /var/lib/myapp 0755 myuser mygroup -"
|
# "d /var/lib/myapp 0755 myuser mygroup -"
|
||||||
# ];
|
# ];
|
||||||
# read more options here
|
|
||||||
# https://search.nixos.org/options?channel=25.05&show=virtualisation.oci-containers.containers.%3Cname%3E.workdir&from=0&size=50&sort=relevance&type=packages&query=oci+containers
|
|
||||||
# https://wiki.nixos.org/wiki/NixOS_Containers
|
|
||||||
services.yggdrasil.persistentKeys = false;
|
services.yggdrasil.persistentKeys = false;
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
networking.nftables = {
|
|
||||||
enable = true;
|
|
||||||
ruleset = ''
|
|
||||||
table inet filter {
|
|
||||||
chain input {
|
|
||||||
type filter hook input priority filter; policy accept;
|
|
||||||
ct state related,established accept
|
|
||||||
|
|
||||||
# Restrict ygg0: only allow SSH in
|
|
||||||
iifname "ygg0" tcp dport 22 accept
|
|
||||||
iifname "ygg0" drop
|
|
||||||
}
|
|
||||||
|
|
||||||
chain forward {
|
|
||||||
type filter hook forward priority filter; policy accept;
|
|
||||||
# Optional: drop forwarding via ygg0
|
|
||||||
iifname "ygg0" drop
|
|
||||||
}
|
|
||||||
|
|
||||||
chain output {
|
|
||||||
type filter hook output priority filter; policy accept;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue