1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 12:19:48 +01:00
home-manager/modules/programs/eww.nix

40 lines
814 B
Nix
Raw Normal View History

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 = {
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
<filename>$XDG_CONFIG_HOME/eww</filename>.
'';
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
xdg.configFile."eww".source = cfg.configDir;
};
}