1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

eww: make configDir optional (#6282)

Some people like to manage config directories themselves, and it should not be a requirement but rather an optional feature.
This commit is contained in:
Yuki Kobayashi 2025-02-11 23:27:04 +09:00 committed by GitHub
parent ba4a1a1102
commit 59fe145f0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
@ -44,7 +45,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