Include customSettings option to configure regreet (#4)

* Attempt to add regrett configuration
* Prevent double install of regreet
* Install regreet over program enable
* Force regreet settings
* Revert regreet over programs enable.
* Move regreet config into homemanger.
This commit is contained in:
MathewHDYT 2024-11-08 19:41:51 +01:00 committed by GitHub
parent 0c1291d3fd
commit 0389558529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 3 deletions

View file

@ -46,7 +46,7 @@
};
example = { };
type = with lib.types; attrsOf anything;
description = "Firefox policy configuration";
description = "Firefox policy configuration. See https://mozilla.github.io/policy-templates/ for more information.";
};
extensions = lib.mkOption {
default = with pkgs.nur.repos.rycee.firefox-addons; [

View file

@ -58,6 +58,16 @@
'';
};
};
regreet = {
customSettings = lib.mkOption {
default = { };
example = { };
type = with lib.types; attrsOf anything;
description = ''
Custom regret settings. See https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml for more information.
'';
};
};
};
config =
@ -120,11 +130,13 @@
env=XCURSOR_SIZE,${toString config.mods.stylix.cursor.size}
env=QT_QPA_PLATFORMTHEME,qt5ct
exec-once=regreet --style /home/${username}/.config/gtk-3.0/gtk.css; hyprctl dispatch exit
exec-once=regreet --style /home/${username}/.config/gtk-3.0/gtk.css --config /home/${username}/.config/regreet/regreet.toml; hyprctl dispatch exit
'';
# unlock GPG keyring on login
security.pam.services.greetd.enableGnomeKeyring = true;
} // lib.optionalAttrs (options ? home) {
xdg.configFile."regreet/regreet.toml".source = (pkgs.formats.toml { }).generate "regreet" config.mods.regreet.customSettings;
}
);
}