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 = 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))
]; ];
}; };
} }

View file

@ -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))
]; ];
}; };
} }