universedesktop: cleanup desktop definition

This commit is contained in:
2025-01-25 18:35:51 -05:00
parent 0cfc9f8f91
commit 7997992095
3 changed files with 37 additions and 38 deletions

View File

@@ -0,0 +1,33 @@
{ config, pkgs, lib, ... }: let
empttyConf = pkgs.writeText "emptty-config" ''
TTY_NUMBER=7
WAYLAND_SESSIONS_PATH="${config.services.displayManager.sessionData.desktops}/share/wayland-sessions"
'';
in {
services.displayManager = {
enable = true;
execCmd = "${pkgs.emptty}/bin/emptty -d";
};
systemd.services.display-manager = {
enable = true;
path = [pkgs.dwl];
serviceConfig = {
EnvironmentFile = empttyConf;
Type="idle";
TTYPath="/dev/tty7";
TTYReset="yes";
SendSIGHUP="yes";
KillMode="process";
};
};
security.pam.services = {
emptty.text = ''
auth substack sshd
account include sshd
password substack sshd
session include sshd
'';
};
}