Skip to content

Commit

Permalink
lib: modules: zsh: add default value for file option
Browse files Browse the repository at this point in the history
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
  • Loading branch information
rissson committed Jun 26, 2023
1 parent 84adb94 commit 81239e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/modules/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
let
inherit (nixpkgs) lib;
inherit (lib)
mkDefault
mkEnableOption
mkOption
types
Expand All @@ -13,7 +14,7 @@ let
in
{
# TODO: Bring this from home-manager!
pluginModule = with types; submodule {
pluginModule = with types; submodule ({ config, ... }: {
options = {
src = mkOption {
type = path;
Expand All @@ -37,5 +38,7 @@ in
description = "The plugin script to source.";
};
};
};

config.file = mkDefault "${config.name}.plugin.zsh";
});
}

0 comments on commit 81239e3

Please sign in to comment.