diff --git a/modules/regreet/nixos.nix b/modules/regreet/nixos.nix new file mode 100644 index 0000000..a9c76da --- /dev/null +++ b/modules/regreet/nixos.nix @@ -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"; + }; + }; + }; +}