flocon/system/services/regreet.nix
Anthony Rodriguez e24ab1eb95
repo: move everything gtk into modules
This is mostly so that applications like ReGreet, which are managed by
NixOS instead of HM, can also use the same GTK settings. It reduces
repeating code by a lot and allows changing themes way more easily now.
2024-10-06 17:48:46 +02:00

34 lines
684 B
Nix

{
lib,
pkgs,
config,
...
}: let
inherit (lib) mkForce;
in {
environment.systemPackages = [
config.style.gtk.theme.package
config.style.gtk.iconTheme.package
config.style.cursorTheme.package
];
programs.regreet = {
enable = true;
package = pkgs.greetd.regreet;
cageArgs = [
"-s"
"-d"
];
settings = {
GTK = {
cursor_theme_name = mkForce config.style.cursorTheme.name;
icon_theme_name = mkForce config.style.gtk.iconTheme.name;
theme_name = mkForce config.style.gtk.theme.name;
};
};
};
security.pam.services.greetd = {
enableGnomeKeyring = true;
fprintAuth = false;
};
}