Skip to content

Commit

Permalink
fix(nixos/sddm): use the kde sddm package
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Jun 22, 2024
1 parent 73e06d5 commit 86156b3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/nixos/sddm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,17 @@ in
default = true;
description = "Add an additional background layer to the login panel";
};

assertQt6Sddm =
lib.mkEnableOption "checking `services.displayManager.sddm.package` is the Qt 6 version. This is to ensure the theme is applied properly, but may have false positives in the case of overridden packages for example"
// {
default = true;
};
};

config = mkIf enable {
services.displayManager.sddm.theme = "catppuccin-${cfg.flavor}";

environment.systemPackages = [
(pkgs.catppuccin-sddm.override {
inherit (cfg)
Expand All @@ -55,5 +62,12 @@ in
;
})
];

assertions = lib.lists.optionals cfg.assertQt6Sddm [
{
assertion = config.services.displayManager.sddm.package != pkgs.kdePackages.sddm;
message = "Not using the kdePackages.sddm package, will cause the theme to fail being applied";
}
];
};
}

0 comments on commit 86156b3

Please sign in to comment.