mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
Add nebula devshell
This commit is contained in:
parent
d8ce0a52ed
commit
f8b30ac57b
1 changed files with 19 additions and 0 deletions
19
flake-parts/nebula.nix
Normal file
19
flake-parts/nebula.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
_: {
|
||||||
|
perSystem =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
devShells.nebula = pkgs.mkShellNoCC {
|
||||||
|
packages = [
|
||||||
|
pkgs.nebula
|
||||||
|
pkgs.bitwarden-cli
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
if ! declare -px BW_SESSION >/dev/null 2>&1; then
|
||||||
|
BW_SESSION="$(bw unlock --raw || bw login --raw)"
|
||||||
|
export BW_SESSION
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue