Use alejandra formatter / fix warnings
This commit is contained in:
parent
c5b1041bbb
commit
693d4e3c70
70 changed files with 1424 additions and 1547 deletions
|
|
@ -4,8 +4,7 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options.mods.gnome = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
|
|
@ -20,27 +19,26 @@
|
|||
description = "Use default options provided by module. If disabled, will only apply extraOptions.";
|
||||
};
|
||||
extraOptions = lib.mkOption {
|
||||
default = { };
|
||||
example = { };
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = "Extra options to be applied to the gnome config";
|
||||
};
|
||||
extraDconf = lib.mkOption {
|
||||
default = { };
|
||||
example = { };
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = "Extra options to be applied to the dconf config";
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
let
|
||||
defaultExtensions = with pkgs.gnomeExtensions; [
|
||||
blur-my-shell
|
||||
dash-to-dock
|
||||
tray-icons-reloaded
|
||||
];
|
||||
in
|
||||
config = let
|
||||
defaultExtensions = with pkgs.gnomeExtensions; [
|
||||
blur-my-shell
|
||||
dash-to-dock
|
||||
tray-icons-reloaded
|
||||
];
|
||||
in
|
||||
lib.mkIf config.mods.gnome.enable (
|
||||
lib.optionalAttrs (options ? services.xserver.desktopManager.gnome) (
|
||||
{
|
||||
|
|
@ -49,7 +47,7 @@
|
|||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
}
|
||||
// lib.mkIf config.mods.gnome.useDefaultOptions { environment.systemPackages = defaultExtensions; }
|
||||
// lib.mkIf config.mods.gnome.useDefaultOptions {environment.systemPackages = defaultExtensions;}
|
||||
// {
|
||||
services.xserver.desktopManager.gnome = config.mods.gnome.extraOptions;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue