summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-06 14:25:13 +0200
committerSoispha <soispha@vhack.eu>2023-05-06 14:34:24 +0200
commit568a79eda1b0779e1b051467b938ab6a0d355ca4 (patch)
treed457e96ef1f9e34c7a33c762a176c6e53678fa9c /sys
parentFix(flake): Typo (diff)
downloadnix-config-568a79eda1b0779e1b051467b938ab6a0d355ca4.tar.gz
nix-config-568a79eda1b0779e1b051467b938ab6a0d355ca4.zip
Feat(treewide): Add river window manager
Co-authored-by: sils <sils@sils.li>
Diffstat (limited to 'sys')
-rw-r--r--sys/default.nix2
-rw-r--r--sys/desktop/river/default.nix20
-rw-r--r--sys/services/flatpak/default.nix10
3 files changed, 26 insertions, 6 deletions
diff --git a/sys/default.nix b/sys/default.nix
index ef20d36..f1dfe31 100644
--- a/sys/default.nix
+++ b/sys/default.nix
@@ -1,6 +1,6 @@
 {...}: {
   imports = [
-    ./desktop/gnome
+    ./desktop/river
     ./environment
     ./nix
     ./packages
diff --git a/sys/desktop/river/default.nix b/sys/desktop/river/default.nix
new file mode 100644
index 0000000..fa2720b
--- /dev/null
+++ b/sys/desktop/river/default.nix
@@ -0,0 +1,20 @@
+{pkgs, ...}: {
+  services.xserver = {
+    enable = true;
+    displayManager = {
+      lightdm.enable = true;
+      defaultSession = "river";
+      session = [
+        {
+          manage = "desktop";
+          name = "river";
+          start = ''
+            ${pkgs.river}/bin/river;
+          '';
+        }
+      ];
+    };
+  };
+}
+# vim: ts=2
+
diff --git a/sys/services/flatpak/default.nix b/sys/services/flatpak/default.nix
index d1f4586..0cc6108 100644
--- a/sys/services/flatpak/default.nix
+++ b/sys/services/flatpak/default.nix
@@ -1,11 +1,11 @@
-{...}: {
+{pkgs, ...}: {
   services.flatpak.enable = true;
   fileSystems."/var/lib/flatpak" = {
     device = "/srv/flatpak";
     options = ["bind"];
   };
-  #  xdg.portal = {
-  #    enable = true;
-  #    extraPortals = [pkgs.xdg-desktop-portal-gtk];
-  #  };
+  xdg.portal = {
+    enable = true;
+    extraPortals = [pkgs.xdg-desktop-portal-gtk];
+  };
 }