add basic devshell

This commit is contained in:
Cyryl Płotnicki 2022-05-01 19:11:04 +01:00
parent 3bbb26e4c3
commit 91ca724dea
3 changed files with 18 additions and 2 deletions

2
.envrc Normal file
View file

@ -0,0 +1,2 @@
use flake

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
result
.direnv/
.vim/undo/
.vim/.netrwhist
.DS_Store

View file

@ -1,7 +1,7 @@
{
description = "NixOS configuration with flakes";
outputs = { self, flake-utils, home-manager, nixpkgs-nixos-unstable
, nixpkgs-stable, darwin, nixos-hardware, nur, agenix, neuron, sops
, nixpkgs-stable, darwin, nixos-hardware, nur, agenix, neuron, sops,
}@inputs:
let
@ -49,7 +49,20 @@
};
};
};
in {
in rec {
devShell."x86_64-linux" =
nixpkgs-stable.legacyPackages."x86_64-linux".mkShell {
buildInputs =
with nixpkgs-nixos-unstable.legacyPackages."x86_64-linux"; [
cacert
git
nixpkgs-fmt
openssh
openssl
pkg-config
statix
];
};
darwinConfigurations = {
"macmini" = darwin.lib.darwinSystem {
system = "x86_64-darwin";