depot/third_party/home-manager/modules/programs/eww.nix
Default email 75fa0ae5af Project import generated by Copybara.
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
2023-08-08 12:19:01 +02:00

39 lines
801 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.eww;
in {
meta.maintainers = [ hm.maintainers.mainrs ];
options.programs.eww = {
enable = mkEnableOption "eww";
package = mkOption {
type = types.package;
default = pkgs.eww;
defaultText = literalExpression "pkgs.eww";
example = literalExpression "pkgs.eww";
description = ''
The eww package to install.
'';
};
configDir = mkOption {
type = types.path;
example = literalExpression "./eww-config-dir";
description = ''
The directory that gets symlinked to
{file}`$XDG_CONFIG_HOME/eww`.
'';
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
xdg.configFile."eww".source = cfg.configDir;
};
}