Files
nix-config/modules/graphical/cosmic.nix
2025-10-30 21:59:31 +01:00

26 lines
592 B
Nix

{
config,
pkgs,
inputs,
lib,
...
}:
let
cfg = config.custom.graphical.cosmic;
in
{
options.custom.graphical.cosmic = {
enable = lib.mkEnableOption "Enables cosmic";
};
config = lib.mkIf cfg.enable {
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable =
if (config.custom.graphical.sddm.enable == false) then true else false;
};
}