switched to using dev shells for local development environment
This commit is contained in:
parent
22f6a37ea8
commit
64d547aa16
12 changed files with 64 additions and 19 deletions
18
flake.nix
18
flake.nix
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue