try out cosmic

This commit is contained in:
Kopatz
2024-05-15 19:32:39 +02:00
parent dba66f1174
commit 32e65af403
7 changed files with 70 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
{ 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;
};
}