Skip to content

Commit

Permalink
regreet: init (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikilio authored Sep 26, 2024
1 parent 993fcab commit 3190239
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions modules/regreet/nixos.nix
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
}

0 comments on commit 3190239

Please sign in to comment.