parent
2116fe6b50
commit
498c188e62
@ -0,0 +1,39 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
let |
||||
|
||||
cfg = config.programs.eww; |
||||
|
||||
in { |
||||
meta.maintainers = [ 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 |
||||
<filename>$XDG_CONFIG_HOME/eww</filename>. |
||||
''; |
||||
}; |
||||
}; |
||||
|
||||
config = mkIf cfg.enable { |
||||
home.packages = [ cfg.package ]; |
||||
xdg.configFile."eww".source = cfg.configDir; |
||||
}; |
||||
} |
Loading…
Reference in new issue