Add devshell and envrc

This commit is contained in:
Torjus Håkestad 2024-06-04 12:44:11 +02:00
parent 88082aa0c1
commit 303f719d9d
3 changed files with 18 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@ -1 +1,2 @@
result
.direnv/

View File

@ -32,6 +32,15 @@
config.allowUnfree = true;
};
};
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
nixosConfigurations = {
@ -70,5 +79,12 @@
];
};
};
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
pre-commit
];
};
});
};
}