Files
nix-config/modules/graphical/cosmic.nix
2024-06-29 19:37:37 +02:00

22 lines
565 B
Nix

{ config, pkgs, inputs, lib, ... }:
with lib;
let
cfg = config.custom.graphical.cosmic;
in
{
options.custom.graphical.cosmic = {
enable = mkEnableOption "Enables cosmic";
};
config = mkIf cfg.enable {
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
boot.kernelParams = [ "nvidia_drm.fbdev=1" ];
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true;
};
}