aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-04-07 00:50:07 +0530
committerAkshay Nair <phenax5@gmail.com>2024-04-07 00:50:07 +0530
commitec71c6ac46ea140d28d3fb41554ee64ee0d1a923 (patch)
treef1ee1d07d8eddcdae6c7414107b6bb34dbeaff84 /configuration.nix
parent639d75899534c1932ada43c72abb62bc856412ab (diff)
downloadnixos-config-ec71c6ac46ea140d28d3fb41554ee64ee0d1a923.tar.gz
nixos-config-ec71c6ac46ea140d28d3fb41554ee64ee0d1a923.zip
config sync
Diffstat (limited to '')
-rw-r--r--configuration.nix29
1 files changed, 20 insertions, 9 deletions
diff --git a/configuration.nix b/configuration.nix
index f3e26e9..9f77b86 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -59,11 +59,11 @@ in
# Network
networking = {
hostName = "smartfridge";
- # firewall = {
- # enable = true;
- # allowedTCPPorts = [ 8080 8081 3000 3001 ];
- # allowedUDPPorts = [ 41641 ];
- # };
+ firewall = {
+ enable = true;
+ allowedTCPPorts = [ 8080 8081 3000 3001 ];
+ allowedUDPPorts = [ 41641 ];
+ };
nameservers = [ "100.100.100.100" "8.8.8.8" "1.1.1.1" ];
search = [ "resolve.construction" ];
networkmanager.enable = true;
@@ -72,7 +72,10 @@ in
127.0.0.1 field.shape-e2e.com
'';
};
- services.tailscale.enable = true;
+ services.tailscale = {
+ enable = true;
+ openFirewall = true;
+ };
services.atd.enable = true;
@@ -82,11 +85,19 @@ in
};
lxd.enable = false;
virtualbox.host.enable = false;
- # qemu = {
- # enable = true;
- # }
+ libvirtd = {
+ enable = true;
+ qemu = {
+ swtpm.enable = true;
+ ovmf.enable = true;
+ ovmf.packages = [ pkgs.OVMFFull.fd ];
+ };
+ };
+ spiceUSBRedirection.enable = true;
# anbox.enable = true;
};
+ services.spice-vdagentd.enable = true;
+
services.flatpak.enable = true;
xdg.portal = {
enable = true;