2024-09-25 01:36:49 +00:00
|
|
|
# Cosmic is a software platform for designing beautiful user experiences
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.profiles.cosmicDesktop;
|
|
|
|
cosmicDesktop = inputs.cosmicDesktop;
|
2024-10-03 08:58:50 +00:00
|
|
|
cosmic-tweaks = cosmicDesktop.packages."${pkgs.system}".cosmic-tweaks;
|
2024-09-25 01:36:49 +00:00
|
|
|
in {
|
|
|
|
options.profiles.cosmicDesktop = {
|
|
|
|
enable = mkEnableOption "to enable the Cosmic desktop.";
|
|
|
|
};
|
|
|
|
config = mkIf (cfg.enable) {
|
|
|
|
nix.settings = {
|
|
|
|
substituters = ["https://cosmic.cachix.org/"];
|
|
|
|
trusted-public-keys = ["cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="];
|
|
|
|
};
|
2024-10-03 08:58:50 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
cosmic-tweaks
|
|
|
|
];
|
2024-09-25 01:36:49 +00:00
|
|
|
services = {
|
|
|
|
desktopManager.cosmic.enable = true;
|
|
|
|
displayManager.cosmic-greeter.enable = true;
|
2024-10-03 03:31:56 +00:00
|
|
|
power-profiles-daemon.enable = true;
|
2024-09-25 01:36:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|