Migrated from import based to config based
This commit is contained in:
24
modules/system/desktop-environments/cosmic.nix
Normal file
24
modules/system/desktop-environments/cosmic.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user