firewall test
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -89,11 +89,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721431043,
|
"lastModified": 1721478374,
|
||||||
"narHash": "sha256-xmJwGXg/y0k40JETVhWGLOMtWmeOb/k2WWMm1yhLbYE=",
|
"narHash": "sha256-hUoPSUqTvU1lHThhiYbPWks4PVjtWUiNySbYzbncGRI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "flake-firefox-nightly",
|
"repo": "flake-firefox-nightly",
|
||||||
"rev": "6ba26a0f3d9d69e9910bab0bed0f5d994089a196",
|
"rev": "222ef1fb1f7359d47bb8205e33de21fd7e961a26",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
QT_QPA_PLATFORM = "wayland-egl";
|
QT_QPA_PLATFORM = "wayland-egl";
|
||||||
SDL_VIDEODRIVER = "wayland";
|
SDL_VIDEODRIVER = "wayland";
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,10 +77,19 @@ in {
|
|||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable networking
|
# Networking
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
hostName = "cnix";
|
hostName = "cnix";
|
||||||
|
nftables.enable = true;
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
interfaces = {
|
||||||
|
"enp7s0" = {
|
||||||
|
allowedTCPPorts = [22 80 443];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
../../services/xserver-cnix.nix
|
../../services/xserver-cnix.nix
|
||||||
../../services/locate.nix
|
../../services/locate.nix
|
||||||
../../services/power.nix
|
../../services/power.nix
|
||||||
|
../../services/samba.nix
|
||||||
|
|
||||||
# extra
|
# extra
|
||||||
../../extra/gaming.nix
|
../../extra/gaming.nix
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
python312Packages.nvidia-ml-py
|
python312Packages.nvidia-ml-py
|
||||||
|
|
||||||
# Util
|
# Util
|
||||||
|
samba4Full
|
||||||
anyrun
|
anyrun
|
||||||
curl
|
curl
|
||||||
fzf
|
fzf
|
||||||
|
|||||||
19
nixos/services/samba.nix
Normal file
19
nixos/services/samba.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
services = {
|
||||||
|
samba = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.samba4Full;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
avahi = {
|
||||||
|
publish.enable = true;
|
||||||
|
publish.userServices = true;
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
samba-wsdd = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user