22 lines
416 B
Nix
22 lines
416 B
Nix
{
|
|
osConfig,
|
|
perSystem,
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
# inherit (osConfig.module.stylix) theme;
|
|
cfg = config.desktop.cosmic;
|
|
in {
|
|
options = {
|
|
desktop.cosmic.enable =
|
|
mkEnableOption "enable cosmic desktop";
|
|
};
|
|
config = let
|
|
importWithArgs = file: import file {inherit config inputs lib perSystem pkgs importWithArgs;};
|
|
in
|
|
mkIf cfg.enable (importWithArgs ./config);
|
|
}
|