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 result
.direnv/
.vim/undo/ .vim/undo/
.vim/.netrwhist .vim/.netrwhist
.DS_Store .DS_Store

View file

@ -1,7 +1,7 @@
{ {
description = "NixOS configuration with flakes"; description = "NixOS configuration with flakes";
outputs = { self, flake-utils, home-manager, nixpkgs-nixos-unstable 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: }@inputs:
let 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 = { darwinConfigurations = {
"macmini" = darwin.lib.darwinSystem { "macmini" = darwin.lib.darwinSystem {
system = "x86_64-darwin"; system = "x86_64-darwin";