This commit is contained in:
NAHO 2024-05-01 18:38:43 +05:45 committed by GitHub
commit 719f075834
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 5 deletions

View File

@ -23,7 +23,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
@ -32,8 +33,11 @@ in {
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
xdg.configFile."eww".source = cfg.configDir;
};
config = mkIf cfg.enable (mkMerge [
{ home.packages = [ cfg.package ]; }
(mkIf (cfg.configDir != null) {
xdg.configFile."eww".source = cfg.configDir;
})
]);
}