fix: zellij-ps uses direct package ref instead of cli.zellij-ps module
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
# Zellij-ps — project-aware Zellij session manager from m3ta-nixpkgs.
|
||||
# Delegates to `cli.zellij-ps` — the home-manager module namespace provided by
|
||||
# m3ta-nixpkgs (inputs.m3ta-nixpkgs.nixosModules.default). This is intentional;
|
||||
# `cli.*` is the convention used by m3ta-nixpkgs home-manager modules.
|
||||
# Zellij-ps — project-aware Zellij session manager.
|
||||
# Installs the zellij-ps package directly and sets project folders.
|
||||
# Note: Does NOT use the m3ta-nixpkgs cli.zellij-ps module to avoid
|
||||
# overlay dependency issues when m3ta-home is used standalone.
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
@@ -22,9 +24,9 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
cli.zellij-ps = {
|
||||
enable = true;
|
||||
projectFolders = cfg.projectFolders;
|
||||
};
|
||||
home.packages = [
|
||||
(inputs.m3ta-nixpkgs.packages.${pkgs.stdenv.hostPlatform.system}.zellij-ps or pkgs.zellij-ps)
|
||||
];
|
||||
home.sessionVariables.PROJECT_FOLDERS = lib.concatStringsSep ":" (map toString cfg.projectFolders);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user