From 568a79eda1b0779e1b051467b938ab6a0d355ca4 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 6 May 2023 14:25:13 +0200 Subject: Feat(treewide): Add river window manager Co-authored-by: sils --- sys/default.nix | 2 +- sys/desktop/river/default.nix | 20 ++++++++++++++++++++ sys/services/flatpak/default.nix | 10 +++++----- 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 sys/desktop/river/default.nix (limited to 'sys') 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]; + }; } -- cgit 1.4.1