Init:start-nix

This commit is contained in:
dichgrem
2025-07-22 12:18:15 +08:00
parent 7ce7214a74
commit e57cdd246c
178 changed files with 22667 additions and 1 deletions

29
modules/services/ddm.nix Normal file
View File

@@ -0,0 +1,29 @@
{
hostname,
pkgs,
...
}: let
inherit (import ../../hosts/${hostname}/env.nix) WM;
in {
services = {
greetd = {
enable = true;
vt = 1;
settings = {
default_session = {
user = "greeter";
command = "${pkgs.greetd.tuigreet}/bin/tuigreet -c ${WM} -t --user-menu";
};
};
};
};
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal";
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
}