dotfiles/dev-shell.nix

31 lines
718 B
Nix
Raw Permalink Normal View History

2023-06-18 00:46:31 +00:00
# Ideally, this should contain the barebone necessary for building/interacting
# with tech used in this project
#
# Should also incorporate shortcuts like scripts/{hm-switch,conf-sysnix}.sh in here instead
#
# It should not contain PDE
2023-06-18 00:46:31 +00:00
{
pkgs ? import <nixpkgs> {},
lib,
...
}:
pkgs.mkShell {
# mkShell doesn't care about the differences across nativeBuildInputs,
# buildInputs, or packages
buildInputs = [
# shell scripts
2023-01-12 17:41:58 +00:00
pkgs.rust4cargo
2023-02-14 08:34:17 +00:00
pkgs.sops
2023-03-23 07:41:44 +00:00
pkgs.ssh-to-age
2023-04-02 06:35:11 +00:00
pkgs.go
pkgs.gopls
];
shellHook = ''
2023-06-18 00:46:31 +00:00
# Since we need late dispatch of ~, we have to put this in shellHook.
export SOPS_AGE_KEY_FILE=~/.config/sops/age/keys.txt
'';
# env vars
2023-01-13 06:42:21 +00:00
lol = "hello world";
}