summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-11-05 01:29:41 +0100
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-11-05 21:23:19 +0100
commit72a532244594a370f597babf700fb013123d8c17 (patch)
tree0cdfcd4dea9cf3696c4f5c131c0e15283a328e43 /hosts
parent466adabc7229bda8119fa27820ceea659979b3f5 (diff)
Secrets via nixos-sops, caldav and fixed virt
Diffstat (limited to 'hosts')
-rw-r--r--hosts/apocalypse/default.nix8
-rw-r--r--hosts/apocalypse/firewall.nix9
-rw-r--r--hosts/test_vm/default.nix11
3 files changed, 16 insertions, 12 deletions
diff --git a/hosts/apocalypse/default.nix b/hosts/apocalypse/default.nix
index d199263..c4bffbf 100644
--- a/hosts/apocalypse/default.nix
+++ b/hosts/apocalypse/default.nix
@@ -61,7 +61,6 @@
programs.nix-ld.enable = true;
services.printing.enable = true;
- # nix.config.allowUnfree = true;
services.resolved = {
@@ -96,13 +95,6 @@
PrintMotd = true;
};
};
-
- # Winbox setup.
- programs.winbox = {
- enable = true;
- openFirewall = true;
- package = pkgs.winbox;
- };
}
diff --git a/hosts/apocalypse/firewall.nix b/hosts/apocalypse/firewall.nix
index c63e556..26097af 100644
--- a/hosts/apocalypse/firewall.nix
+++ b/hosts/apocalypse/firewall.nix
@@ -33,8 +33,10 @@ let
];
in
{
+ networking.nftables.enable = false;
networking.firewall = {
- enable = false;
+ enable = false;
+ checkReversePath = false;
allowedTCPPorts = baseTCP;
allowedUDPPorts = baseUDP;
allowedUDPPortRanges = baseUDPRanges;
@@ -47,6 +49,11 @@ in
allowedTCPPortRanges = secureTCPRanges;
};
};
+ trustedInterfaces = [
+ "docker0"
+ "br-*"
+ "veth*"
+ ];
};
}
diff --git a/hosts/test_vm/default.nix b/hosts/test_vm/default.nix
index 280cb9a..06998c6 100644
--- a/hosts/test_vm/default.nix
+++ b/hosts/test_vm/default.nix
@@ -1,9 +1,14 @@
-{pkgs, lib, ...}: {
-
+{pkgs, lib, inputs,...}: {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
+ imports = ["${inputs.nixpkgs}/nixos/modules/virtualisation/libvirtd.nix"];
- addons.desktop.hyprland.enable = true;
+ networking.hostName = "cookie_vm"; # Define your hostname.
+ networking.networkmanager.enable = true;
+ programs.nix-ld.enable = true;
+
+
+ addons.desktop.hyprland.enable = false;
addons.desktop.xfce.enable = true;
addons.virtualisation.guest = true;
virtualisation.vmVariant = {