mirror of
https://github.com/nix-community/home-manager
synced 2025-01-30 21:05: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:
parent
20665c6efa
commit
ad0d51359a
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue