tmux-sessionizer: configure paths
This commit is contained in:
parent
451a624b76
commit
491aeb0c7e
2 changed files with 28 additions and 13 deletions
15
modules2/hosts/PW05CH3L/tmux-sessionizer.nix
Normal file
15
modules2/hosts/PW05CH3L/tmux-sessionizer.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.nixos."hosts/PW05CH3L".home-manager.users.${config.flake.meta.owner.username} =
|
||||||
|
args: {
|
||||||
|
programs.tmux-sessionizer.searchPaths =
|
||||||
|
let
|
||||||
|
inherit (args.config.xdg) userDirs;
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"${userDirs.extraConfig.XDG_REPOS_DIR}:3"
|
||||||
|
"${userDirs.documents}:1"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.base =
|
flake.modules.nixos."hosts/t480".home-manager.users.${config.flake.meta.owner.username} = args: {
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
programs.tmux-sessionizer.searchPaths =
|
programs.tmux-sessionizer.searchPaths =
|
||||||
let
|
let
|
||||||
inherit (config.xdg) userDirs;
|
inherit (args.config.xdg) userDirs;
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"${userDirs.extraConfig.XDG_REPOS_DIR}:2"
|
"${userDirs.extraConfig.XDG_REPOS_DIR}:2"
|
||||||
"${userDirs.documents}:1"
|
"${userDirs.documents}:1"
|
||||||
"${config.home.homeDirectory}/tmp"
|
"${args.config.home.homeDirectory}/tmp"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue