2022-02-02 16:46:23 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.eww;
|
|
|
|
|
|
|
|
in {
|
2022-02-17 22:34:21 +01:00
|
|
|
meta.maintainers = [ hm.maintainers.mainrs ];
|
2022-02-02 16:46:23 +01:00
|
|
|
|
|
|
|
options.programs.eww = {
|
2023-07-02 01:45:18 +02:00
|
|
|
enable = mkEnableOption "eww";
|
2022-02-02 16:46:23 +01:00
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.eww;
|
|
|
|
defaultText = literalExpression "pkgs.eww";
|
|
|
|
example = literalExpression "pkgs.eww";
|
2023-07-02 01:45:18 +02:00
|
|
|
description = ''
|
2022-02-02 16:46:23 +01:00
|
|
|
The eww package to install.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
configDir = mkOption {
|
|
|
|
type = types.path;
|
|
|
|
example = literalExpression "./eww-config-dir";
|
2023-07-02 01:45:18 +02:00
|
|
|
description = ''
|
2022-02-02 16:46:23 +01:00
|
|
|
The directory that gets symlinked to
|
2023-07-01 01:30:13 +02:00
|
|
|
{file}`$XDG_CONFIG_HOME/eww`.
|
2022-02-02 16:46:23 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = [ cfg.package ];
|
|
|
|
xdg.configFile."eww".source = cfg.configDir;
|
|
|
|
};
|
|
|
|
}
|