update ente and enable cosmic

This commit is contained in:
Kopatz
2024-08-19 15:24:29 +02:00
parent 5484575693
commit e608eba9e9
4 changed files with 14 additions and 16 deletions

View File

@@ -1,21 +1,19 @@
{ config, pkgs, inputs, lib, ... }:
with lib;
let
cfg = config.custom.graphical.cosmic;
in
{
options.custom.graphical.cosmic = {
enable = mkEnableOption "Enables cosmic";
enable = lib.mkEnableOption "Enables cosmic";
};
config = mkIf cfg.enable {
config = lib.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;
services.displayManager.cosmic-greeter.enable = if (config.custom.graphical.sddm.enable == false) then true else false;
};
}