Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN authored Nov 30, 2024
1 parent 5647407 commit 04fa362
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions modules/workspace.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,22 @@ let
};
};

wallpaperBackgroundType = lib.types.submodule (
{ config, ... }:
{
options = {
color = lib.mkOption {
type = with lib.types; nullOr str;
default = null;
example = "219,99,99";
description = "Background color to use";
};
blur = lib.mkOption {
type = with lib.types; nullOr bool;
default = null;
example = true;
description = "Whether to blur the background";
};
wallpaperBackgroundType = lib.types.submodule {
options = {
color = lib.mkOption {
type = with lib.types; nullOr str;
default = null;
example = "219,99,99";
description = "Background color to use";
};
}
);
blur = lib.mkOption {
type = with lib.types; nullOr bool;
default = null;
example = true;
description = "Whether to blur the background";
};
};
}

anyThemeSet = (
cfg.workspace.theme != null
Expand Down

0 comments on commit 04fa362

Please sign in to comment.