{ lib, ... }: with lib; let # nord = import ../../desktop/theme/nord.nix; # defaultOpacity = "opacity: 0.85;"; # defaultBorderRadius = "border-radius: 1rem;"; # defaultCenterOptions = '' # padding-top: 0.2rem; # padding-bottom: 0.2rem; # padding-left: 0.5rem; # padding-right: 0.5rem; # margin: 3px 0; # ''; # borderRight = '' # padding-top: 0.2rem; # padding-bottom: 0.2rem; # padding-left: 0.5rem; # padding-right: 0.5rem; # margin: 3px 0; # border-radius: 0rem 1rem 1rem 0rem; # margin-right: 0.5rem; # ''; # borderLeft = '' # padding-top: 0.2rem; # padding-bottom: 0.2rem; # padding-left: 0.5rem; # padding-right: 0.5rem; # margin: 3px 0; # border-radius: 1rem 0rem 0rem 1rem; # margin-left: 0.5rem; # ''; in { options.mjallen.programs.waybar = { enable = mkEnableOption "enable waybar"; layer = mkOption { type = types.str; default = "top"; }; modules-right = mkOption { type = with types; listOf str; default = [ ]; }; networkInterface = mkOption { type = types.str; default = "wlan0"; }; extraModules = mkOption { type = types.attrs; default = { }; }; extraModulesStyle = mkOption { type = types.str; default = ""; }; # Waybar modules config # modules = mkOption { # type = types.submodule { # options = { # # Modules # window = mkOption { # type = types.submodule { # options = { # # Waybar Module CSS # margin-right = mkOption { # type = types.str; # default = "4"; # }; # }; # }; # }; # temperature = mkOption { # type = types.submodule { # options = { # # Waybar Module CSS # margin-right = mkOption { # type = types.str; # default = "4"; # }; # }; # }; # }; # }; # }; # default = { }; # }; }; }