parent
21d9ca8737
commit
fcfdc8a580
2 changed files with 126 additions and 103 deletions
|
@ -1,12 +1,16 @@
|
||||||
|
{ withSystem, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.base =
|
perSystem =
|
||||||
{ pkgs, ... }:
|
psArgs@{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = [
|
packages.clone = pkgs.writeShellApplication {
|
||||||
(pkgs.writeShellApplication {
|
|
||||||
name = "clone";
|
name = "clone";
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [ git ];
|
runtimeInputs = with pkgs; [
|
||||||
|
git
|
||||||
|
psArgs.config.packages.tmux-sessionizer
|
||||||
|
];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
repo_url="$1"
|
repo_url="$1"
|
||||||
|
@ -36,7 +40,14 @@
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
})
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.base =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = [
|
||||||
|
(withSystem pkgs.system (psArgs: psArgs.config.packages.clone))
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
|
{ withSystem, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.base =
|
perSystem =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = [
|
packages.tmux-sessionizer = pkgs.writeShellApplication {
|
||||||
(pkgs.writeShellApplication {
|
|
||||||
name = "tmux-sessionizer";
|
name = "tmux-sessionizer";
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [ coreutils fzf tmux ];
|
runtimeInputs = with pkgs; [
|
||||||
|
coreutils
|
||||||
|
fzf
|
||||||
|
tmux
|
||||||
|
];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
@ -71,7 +76,14 @@
|
||||||
|
|
||||||
switch_to "$selected_name"
|
switch_to "$selected_name"
|
||||||
'';
|
'';
|
||||||
})
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake.modules.homeManager.base =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = [
|
||||||
|
(withSystem pkgs.system (psArgs: psArgs.config.packages.tmux-sessionizer))
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue