aboutsummaryrefslogtreecommitdiff
path: root/modules/client/labwc
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-08-31 14:21:34 +0000
committeraethrvmn <me@aethrvmn.gr>2025-08-31 14:21:34 +0000
commitbfd970a07c231b5781871c16cb4612eb4c6b8fd4 (patch)
tree50a4ac5138d1f438e4d5bad3a3dd880a0784cd3e /modules/client/labwc
parentadded flake (diff)
imported system/home-manager config
Diffstat (limited to '')
-rw-r--r--modules/client/labwc/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/client/labwc/default.nix b/modules/client/labwc/default.nix
new file mode 100644
index 0000000..e0350f4
--- /dev/null
+++ b/modules/client/labwc/default.nix
@@ -0,0 +1,40 @@
+{ config, pkgs, ... }:
+# Set up a complete labwc instance system-side
+{
+ # Enable labwc
+ programs.labwc.enable = true;
+
+ # Enable XDG portals for wl-roots
+ xdg.portal = {
+ wlr.enable = true;
+ extraPortals = with pkgs; [
+ xdg-desktop-portal-gtk
+ ];
+ enable = true;
+ };
+
+ # Enable tuigreet
+ services = {
+ greetd = {
+ enable = true;
+ settings = {
+ default_session = {
+ command = "${pkgs.tuigreet}/bin/tuigreet --user-menu -rti --asterisks --cmd labwc";
+ user = "greeter";
+ };
+ };
+ };
+ };
+
+ # Hide stderror and bootlogs from filling tuigreet
+ systemd.services.greetd.serviceConfig = {
+ Type = "idle";
+ StandardInput = "tty";
+ StandardOutput = "ttu";
+ StandardError = "journal"; # logs erros to journal, preventing spam on tuigreet
+
+ TTYReset = true;
+ TTYVHangup = true;
+ TTYVTDisallocate = true;
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.