feat: migrate to regreet from tuigreet

This commit is contained in:
2026-03-12 23:09:14 +01:00
parent 3011898b28
commit cb4556b364
3 changed files with 34 additions and 37 deletions

33
modules/nixos/greeter.nix Normal file
View File

@@ -0,0 +1,33 @@
{
lib,
config,
pkgs,
inputs,
...
}:
{
options = {
greeter.enable = lib.mkEnableOption "greetd with regreet";
};
config = lib.mkIf config.greeter.enable {
programs.regreet = {
enable = true;
# single output to avoid stretching across monitors
cageArgs = [ "-s" ];
font = {
name = lib.mkForce "JetBrainsMono Nerd Font";
size = lib.mkForce 14;
};
settings = {
background = {
path = lib.mkForce "${inputs.assets}/wallpaper.png";
fit = lib.mkForce "Cover";
};
GTK = {
application_prefer_dark_theme = lib.mkForce true;
};
};
};
};
}