regreet: init (#568)

This commit is contained in:
Kilian Mio 2024-09-26 16:25:52 +02:00 committed by GitHub
parent 993fcabd83
commit 3190239337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

33
modules/regreet/nixos.nix Normal file
View file

@ -0,0 +1,33 @@
{
pkgs,
config,
lib,
...
}:
{
options.stylix.targets.regreet.enable = config.lib.stylix.mkEnableTarget "ReGreet" true;
config =
lib.mkIf
(config.stylix.enable && config.stylix.targets.regreet.enable && pkgs.stdenv.hostPlatform.isLinux)
{
programs.regreet = {
settings.background.path = config.stylix.image;
font = {
inherit (config.stylix.fonts.sansSerif) name package;
};
cursorTheme = {
inherit (config.stylix.cursor) name package;
};
theme = {
package = pkgs.adw-gtk3;
name = "adw-gtk3";
};
extraCss = config.lib.stylix.colors {
template = ./../gtk/gtk.mustache;
extension = "css";
};
};
};
}