Add firewall, remove unused programs, update hyprland conf

This commit is contained in:
2025-05-09 20:19:31 +02:00
parent 465ca64a29
commit 9052cd67c2
3 changed files with 62 additions and 39 deletions
+22 -6
View File
@@ -13,12 +13,32 @@
}; };
networking = { networking = {
hostName = "darp8";
networkmanager = { networkmanager = {
enable = true; enable = true;
wifi.backend = "iwd"; wifi.backend = "iwd";
}; };
hostName = "nixos-laptop";
firewall.enable = false; firewall = {
enable = true;
# Open ports in the firewall.
allowedTCPPorts = [ 21 22 80 443 4070 ];
allowedUDPPorts = [ 4070 ];
allowedTCPPortRanges = [
{ from = 8000; to = 8010; }
{ from = 27031; to = 27036; }
];
allowedUDPPortRanges = [
{ from = 27000; to = 27036; }
{ from = 5001; to = 65535; }
];
allowPing = true;
};
wireless.iwd = { wireless.iwd = {
enable = true; enable = true;
settings = { settings = {
@@ -30,10 +50,6 @@
# Configure network proxy if necessary # Configure network proxy if necessary
# proxy.default = "http://user:password@proxy:port/"; # proxy.default = "http://user:password@proxy:port/";
# proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
}; };
time.timeZone = "Europe/Madrid"; time.timeZone = "Europe/Madrid";
-2
View File
@@ -31,7 +31,6 @@
emacsPackages.pdf-tools emacsPackages.pdf-tools
exfatprogs exfatprogs
filezilla filezilla
firefox
floorp floorp
genymotion genymotion
ghostty ghostty
@@ -50,7 +49,6 @@
mpv mpv
mupdf mupdf
nautilus nautilus
netbeans
networkmanagerapplet networkmanagerapplet
nwg-look nwg-look
openvpn openvpn
+40 -31
View File
@@ -67,7 +67,7 @@
numlock_by_default = true; numlock_by_default = true;
touchpad = { touchpad = {
disable_while_typing = false; disable_while_typing = true;
natural_scroll = true; natural_scroll = true;
middle_button_emulation = true; middle_button_emulation = true;
scroll_factor = 0.5; scroll_factor = 0.5;
@@ -96,6 +96,15 @@
key_press_enables_dpms = true; key_press_enables_dpms = true;
}; };
ecosystem = {
no_update_news = true;
no_donation_nag = true;
};
experimental = {
xx_color_management_v4 = true;
};
decoration = { decoration = {
rounding = 10; rounding = 10;
blur = { blur = {
@@ -139,36 +148,36 @@
}; };
windowrule = [ windowrule = [
"idleinhibit fullscreen, firefox" "idleinhibit fullscreen, class:firefox"
"idleinhibit fullscreen, floorp" "idleinhibit fullscreen, class:floorp"
"idleinhibit fullscreen, ghostty" "idleinhibit fullscreen, class:ghostty"
"idleinhibit focus, firefox" "idleinhibit focus, class:firefox"
"idleinhibit focus, floorp" "idleinhibit focus, class:floorp"
"idleinhibit focus, mpv" "idleinhibit focus, class:mpv"
"idleinhibit focus, ^(emacs)$" "idleinhibit focus, class:^(emacs)$"
"idleinhibit focus, ^(Emacs)$" "idleinhibit focus, class:^(Emacs)$"
"idleinhibit focus, ^(discord)$" "idleinhibit focus, class:^(discord)$"
"idleinhibit focus, ^(Discord)$" "idleinhibit focus, class:^(Discord)$"
"idleinhibit focus, ^(spotify)$" "idleinhibit focus, class:^(spotify)$"
"float, polkit-kde-authentication-agent-1" "float, class:polkit-kde-authentication-agent-1"
"float, ^(praat)$" "float, class:^(praat)$"
"float, ^(network)$" "float, class:^(network)$"
"float, ^(nm-)$" "float, class:^(nm-)$"
"float, ^(Network)$" "float, class:^(Network)$"
"float, Rofi" "float, class:Rofi"
"float, Gimp" "float, class:Gimp"
"float, Nautilus" "float, class:Nautilus"
"float, notification" "float, class:notification"
"float, ^(launcher)$" "float, class:^(launcher)$"
"tile, Spotify" "tile, class:Spotify"
"tile, Minecraft" "tile, title:Minecraft"
"workspace 2, KeePassXC" "workspace 2, class:KeePassXC"
"workspace 3, firefox" "workspace 3, class:firefox"
"workspace 3, floorp" "workspace 3, class:floorp"
"workspace 4, Spotify" "workspace 4, class:Spotify"
"workspace 6, discord" "workspace 6, class:discord"
"workspace 6, Signal" "workspace 6, class:Signal"
"workspace 10, Minecraft" "workspace 10, title:Minecraft"
]; ];
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";