fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5let 6 7cfg = config . programs . eww ; 8 9in { 10meta . maintainers = [ hm . maintainers . mainrs ]; 11 12options . programs . eww = { 13enable = mkEnableOption "eww" ; 14 15package = mkOption { 16type = types . package ; 17default = pkgs . eww ; 18defaultText = literalExpression "pkgs.eww" ; 19example = literalExpression "pkgs.eww" ; 20description = '' 21The eww package to install. 22'' ; 23}; 24 25configDir = mkOption { 26type = types . path ; 27example = literalExpression "./eww-config-dir" ; 28description = '' 29The directory that gets symlinked to 30{file}`$XDG_CONFIG_HOME/eww`. 31'' ; 32}; 33}; 34 35config = mkIf cfg . enable { 36home . packages = [ cfg . package ]; 37xdg . configFile . "eww" . source = cfg . configDir ; 38}; 39}