mirror of
https://github.com/nix-community/home-manager
synced 2024-06-14 10:43:39 +02:00
Merge 0b8c607be7
into 6d3b6dc922
This commit is contained in:
commit
719f075834
|
@ -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;
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user