25 lines
469 B
Nix
25 lines
469 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.settings.desktop-environments.cosmic;
|
|
in {
|
|
options = {
|
|
settings.desktop-environments.cosmic.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
description = ''
|
|
Enable cosmic desktop environment
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.desktopManager.cosmic.enable = true;
|
|
|
|
environment.sessionVariables = {
|
|
COSMIC_DISABLE_DIRECT_SCANOUT = "true";
|
|
};
|
|
};
|
|
}
|