adds zellij-switch

This commit is contained in:
Dennis Schoepf 2025-12-04 22:30:06 +01:00
parent 3948af39bf
commit 9d5c30afd0
3 changed files with 12 additions and 4 deletions

View file

@ -16,6 +16,7 @@
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
ip-whitelist.url = "github:Oak-Digital/nixos-ip-whitelist-firewall";
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
inputs.zellij-switch.url = "github:mostafaqanbaryan/zellij-switch";
};
outputs =
@ -27,6 +28,7 @@
nix-homebrew,
agenix,
ironbar,
zellij-switch,
...
}@inputs:
let

View file

@ -23,9 +23,14 @@
nix.settings.trusted-users = [ "dennis" ];
nixpkgs.config = {
allowUnfree = true;
allowUnsupportedSystem = true;
nixpkgs = {
config = {
allowUnfree = true;
allowUnsupportedSystem = true;
};
overlays = [
inputs.zellij-switch.overlays.default
];
};
# System Packages
@ -65,6 +70,7 @@
restic
devenv
zellij
zellij-switch
];
# Homebrew

View file

@ -53,7 +53,7 @@
'';
sessionizer = ''
set -l selected (fd . $HOME/dev/ -t d -d 1 | fzf)
zellij attach --create $selected
zellij-switch --session (basename $selected) --cwd $selected --layout default
'';
nn = ''
# Require a title argument