mirror of
https://github.com/danth/stylix
synced 2024-11-24 21:23:24 +00:00
regreet: init (#568)
This commit is contained in:
parent
993fcabd83
commit
3190239337
1 changed files with 33 additions and 0 deletions
33
modules/regreet/nixos.nix
Normal file
33
modules/regreet/nixos.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue