universedesktop: cleanup desktop definition
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user