1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-30 12:55:02 +01:00

eww: make configDir optional

reason: some people (such as me) like to manage config directories themselves, and it should not be a requirement but rather an optional feature
This commit is contained in:
aster 2025-01-07 18:07:38 +09:00
parent 20665c6efa
commit ad0d51359a

View file

@ -24,7 +24,8 @@ in {
};
configDir = mkOption {
type = types.path;
type = types.nullOr types.path;
default = null;
example = literalExpression "./eww-config-dir";
description = ''
The directory that gets symlinked to
@ -47,7 +48,8 @@ in {
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
xdg.configFile."eww".source = cfg.configDir;
xdg.configFile."eww".source =
mkIf (!types.isNull cfg.configDir) cfg.configDir;
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
if [[ $TERM != "dumb" ]]; then