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

@@ -1,41 +1,5 @@
{ config, pkgs, lib, ... }: let
empttyConf = pkgs.writeText "emptty-config" ''
TTY_NUMBER=7
WAYLAND_SESSIONS_PATH="${config.services.displayManager.sessionData.desktops}/share/wayland-sessions"
'';
in {
{ ... }: {
imports = [
./dwl.nix
./emptty.nix
];
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";
};
};
environment.etc."emptty/conf".source = empttyConf;
services.displayManager.sessionPackages = [ pkgs.dwl ];
security.pam.services = {
emptty.text = ''
auth substack sshd
account include sshd
password substack sshd
session include sshd
'';
};
}