nix nix nix (more nix)

This commit is contained in:
2025-09-22 18:11:37 +01:00
parent acd6c0bd6a
commit 2c60fdb0f9
5 changed files with 119 additions and 8 deletions

View File

@@ -0,0 +1,36 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.greetd;
tuigreet = "${pkgs.tuigreet}/bin/tuigreet";
in
{
options.modules.greetd = {
enable = lib.mkEnableOption "Greetd configuration module";
};
config = {
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${tuigreet} --time --remember --cmd Hyprland";
user = "greeter";
};
};
};
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal";
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
};
}