summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/default.nix2
-rw-r--r--sys/desktop/hyprland/default.nix6
-rw-r--r--sys/environment/default.nix1
-rw-r--r--sys/xdg/default.nix3
4 files changed, 12 insertions, 0 deletions
diff --git a/sys/default.nix b/sys/default.nix
index d38321a..e90e405 100644
--- a/sys/default.nix
+++ b/sys/default.nix
@@ -2,6 +2,7 @@
   imports = [
     ./desktop/gnome
     ./desktop/awesome
+    ./desktop/hyprland
     ./environment
     ./font
     ./impermanence
@@ -12,5 +13,6 @@
     ./sound
     ./systemd
     ./users
+    ./xdg
   ];
 }
diff --git a/sys/desktop/hyprland/default.nix b/sys/desktop/hyprland/default.nix
new file mode 100644
index 0000000..f7c3ab1
--- /dev/null
+++ b/sys/desktop/hyprland/default.nix
@@ -0,0 +1,6 @@
+{...}: {
+  programs.hyprland = {
+    enable = true;
+    xwayland.enable = true;
+  };
+}
diff --git a/sys/environment/default.nix b/sys/environment/default.nix
index 4760783..bf8ec5f 100644
--- a/sys/environment/default.nix
+++ b/sys/environment/default.nix
@@ -19,6 +19,7 @@
       GOPATH = "\${HOME}/.local/share/go";
       XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose";
       CDPATH = ".:\${HOME}:\${HOME}/repos/:\${HOME}/srv";
+      NIXOS_OZONE_WL = "1"; # wayland for electron apps
 
       #PYTHONSTARTUP="/etc/python/pythonrc";
 
diff --git a/sys/xdg/default.nix b/sys/xdg/default.nix
new file mode 100644
index 0000000..1182d5e
--- /dev/null
+++ b/sys/xdg/default.nix
@@ -0,0 +1,3 @@
+{...}: {
+  xdg.portal.enable = true;
+}