Skip to content

Commit

Permalink
Merge branch 'main' into feat/disable-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
friedow committed Feb 27, 2024
2 parents f79475f + 102ba91 commit 099e0c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions home-manager-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
[ "alacritty" "--command" "nvim" "$GIT_DIRECTORY" ]
[ "alacritty" "--working-directory" "$GIT_DIRECTORY" ]
];
type = lib.types.listOf lib.types.listOf lib.types.str;
type = lib.types.listOf (lib.types.listOf lib.types.str);
description = lib.mdDoc
"The commands to launch when an entry is selected. Use the $GIT_DIRECTORY variable to pass in the selected directory.";
example = [
Expand Down Expand Up @@ -43,8 +43,9 @@ in {
config = lib.mkMerge [
(lib.mkIf cfg.enable { home.packages = [ centerpiece ]; })

(lib.mkIf cfg.config {
home.file.".config/centerpiece/config.yml" = builtins.toYAML cfg.config;
(lib.mkIf cfg.enable {
home.file.".config/centerpiece/config.yml".text =
lib.generators.toYAML { } cfg.config;
})

(lib.mkIf cfg.services.index-git-repositories.enable {
Expand Down

0 comments on commit 099e0c3

Please sign in to comment.