diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-08-31 14:21:34 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-08-31 14:21:34 +0000 |
| commit | bfd970a07c231b5781871c16cb4612eb4c6b8fd4 (patch) | |
| tree | 50a4ac5138d1f438e4d5bad3a3dd880a0784cd3e /modules/client/labwc/default.nix | |
| parent | added flake (diff) | |
imported system/home-manager config
Diffstat (limited to '')
| -rw-r--r-- | modules/client/labwc/default.nix | 40 |
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; + }; +} |
