fix(stylix): Always set options

Stylix cannot be disabled: https://github.com/danth/stylix/issues/216
This commit is contained in:
Jalil David Salamé Messina 2024-01-15 23:22:02 +01:00
parent a539aa467f
commit 43d2a4845d
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 3 additions and 2 deletions

View file

@ -7,11 +7,12 @@ in
./options.nix
./gui
stylix.nixosModules.stylix
# FIXME(https://github.com/danth/stylix/issues/216): Must configure stylix
{ stylix = import ./stylix-config.nix { inherit config pkgs; }; }
];
config = lib.mkIf cfg.enable {
boot.plymouth.enable = cfg.styling.enable;
stylix = lib.mkIf cfg.styling.enable (import ./stylix-config.nix { inherit config pkgs; });
# Enable unlocking the gpg-agent at boot (configured through home.nix)
security.pam.services.login.gnupg.enable = true;

View file

@ -27,7 +27,7 @@ let
};
styling.options = {
enable = mkDisableOption "jalil's default styling";
enable = mkDisableOption "jalil's default styling (cannot be disabled currently)";
wallpaper = lib.mkOption {
description = "The wallpaper to use.";
type = types.str;