Refactor
All checks were successful
/ check (push) Successful in 50s

This commit is contained in:
Oliver Davies 2025-09-03 08:30:15 +01:00
parent 21d9ca8737
commit fcfdc8a580
2 changed files with 126 additions and 103 deletions

View file

@ -1,12 +1,16 @@
{ withSystem, ... }:
{
flake.modules.homeManager.base =
{ pkgs, ... }:
perSystem =
psArgs@{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
packages.clone = pkgs.writeShellApplication {
name = "clone";
runtimeInputs = with pkgs; [ git ];
runtimeInputs = with pkgs; [
git
psArgs.config.packages.tmux-sessionizer
];
text = ''
repo_url="$1"
@ -36,7 +40,14 @@
exit 1
fi
'';
})
};
};
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(withSystem pkgs.system (psArgs: psArgs.config.packages.clone))
];
};
}

View file

@ -1,12 +1,17 @@
{ withSystem, ... }:
{
flake.modules.homeManager.base =
perSystem =
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
packages.tmux-sessionizer = pkgs.writeShellApplication {
name = "tmux-sessionizer";
runtimeInputs = with pkgs; [ coreutils fzf tmux ];
runtimeInputs = with pkgs; [
coreutils
fzf
tmux
];
text = ''
set -euo pipefail
@ -71,7 +76,14 @@
switch_to "$selected_name"
'';
})
};
};
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(withSystem pkgs.system (psArgs: psArgs.config.packages.tmux-sessionizer))
];
};
}