mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 07:49:57 +00:00
Restrict tmux and desktop tools to Void hosts
This commit is contained in:
30
dotfiles/desktop/.tmux/plugins/tmux-project/flake.nix
Normal file
30
dotfiles/desktop/.tmux/plugins/tmux-project/flake.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
packages.default = pkgs.callPackage ./packages/default.nix { };
|
||||
|
||||
devShells.default =
|
||||
let
|
||||
tmux_conf = pkgs.writeText "tmux.conf" ''
|
||||
run-shell ${self.packages.${system}.default.rtp}/project.tmux
|
||||
'';
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ tmux fzf ];
|
||||
shellHook = ''
|
||||
TMUX= TMUX_TMPDIR= exec tmux -f ${tmux_conf}
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user