refactor(waybar): trim icon registry scope
This commit is contained in:
@@ -24,16 +24,5 @@
|
|||||||
modules.desktop.utilities.theming.enable = lib.mkDefault true;
|
modules.desktop.utilities.theming.enable = lib.mkDefault true;
|
||||||
modules.desktop.utilities.userdirs.enable = lib.mkDefault true;
|
modules.desktop.utilities.userdirs.enable = lib.mkDefault true;
|
||||||
registry.env.${config.networking.hostName}.NIXOS_OZONE_WL = "1";
|
registry.env.${config.networking.hostName}.NIXOS_OZONE_WL = "1";
|
||||||
registry.window-icon.${config.networking.hostName} = {
|
|
||||||
chromium = {
|
|
||||||
class = "chromium.*";
|
|
||||||
icon = "f268";
|
|
||||||
};
|
|
||||||
|
|
||||||
code = {
|
|
||||||
class = "[Cc]ode";
|
|
||||||
icon = "f121";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
{ lib, util, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
checks = [
|
|
||||||
{
|
|
||||||
assertion = util.registry.predicates.uniquePerHost (entry: entry.value.class);
|
|
||||||
message = "Window icons must use unique class patterns per host.";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
type = lib.types.submodule {
|
type = lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
Reference in New Issue
Block a user