aboutsummaryrefslogtreecommitdiff
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
parent639d75899534c1932ada43c72abb62bc856412ab (diff)
downloadnixos-config-ec71c6ac46ea140d28d3fb41554ee64ee0d1a923.tar.gz
nixos-config-ec71c6ac46ea140d28d3fb41554ee64ee0d1a923.zip
config sync
Diffstat (limited to '')
-rw-r--r--configuration.nix29
-rw-r--r--home.nix7
-rw-r--r--modules/login.nix1
-rw-r--r--packages.nix18
4 files changed, 44 insertions, 11 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;
diff --git a/home.nix b/home.nix
index 91e87e6..0fe08ee 100644
--- a/home.nix
+++ b/home.nix
@@ -15,6 +15,13 @@ in
yarn
];
+ dconf.settings = {
+ "org/virt-manager/virt-manager/connections" = {
+ autoconnect = ["qemu:///system"];
+ uris = ["qemu:///system"];
+ };
+ };
+
# programs.emacs = {
# enable = true;
# };
diff --git a/modules/login.nix b/modules/login.nix
index 7b8ce2f..a1c981a 100644
--- a/modules/login.nix
+++ b/modules/login.nix
@@ -42,6 +42,7 @@ in
"adbusers"
"vboxusers"
"uinput"
+ "libvirtd"
];
shell = pkgs.zsh;
};
diff --git a/packages.nix b/packages.nix
index 04a7737..e895169 100644
--- a/packages.nix
+++ b/packages.nix
@@ -36,7 +36,7 @@ let
# bspwm
# sxhkd
- rnix-lsp
+ nixd
lua-language-server
efm-langserver
@@ -67,7 +67,7 @@ let
feh
# obs-studio
inkscape
- # krita
+ krita
zathura
blender
j4-dmenu-desktop
@@ -141,6 +141,15 @@ let
libva
libdrm
+
+ virt-manager
+ virt-viewer
+ spice
+ spice-gtk
+ spice-protocol
+ win-virtio
+ win-spice
+ gnome.adwaita-icon-theme
];
in
{
@@ -160,6 +169,11 @@ in
programs.darling.enable = true;
+ programs.alvr = {
+ enable = true;
+ openFirewall = true;
+ };
+
# Security wrappers
# security.wrappers = {
# bslock = {