switched to using dev shells for local development environment

This commit is contained in:
Leyla Becker 2024-11-11 18:38:44 -06:00
parent 22f6a37ea8
commit 64d547aa16
12 changed files with 64 additions and 19 deletions

View file

@ -48,6 +48,10 @@
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
};
flake-compat = {
url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
};
};
outputs = {
@ -78,7 +82,19 @@
in {
packages = forEachPkgs (import ./pkgs);
formatter = forEachPkgs (system: system.alejandra);
formatter = forEachPkgs (pkgs: pkgs.alejandra);
devShells = forEachPkgs (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [git sops alejandra nixos-anywhere];
SOPS_AGE_KEY_DIRECTORY = import ./const/sops_age_key_directory.nix;
shellHook = ''
git config core.hooksPath .hooks
'';
};
});
nixosConfigurations = {
# Leyla Laptop