Add devShell including sops

This commit is contained in:
Daniel Olsen 2022-12-09 03:43:14 +01:00
parent dad210a122
commit 9cede1ede2
2 changed files with 17 additions and 1 deletions

View File

@ -11,7 +11,14 @@
matrix-next.url = "github:dali99/nixos-matrix-modules/flake-experiments";
};
outputs = { self, nixpkgs, unstable, sops-nix, ... }@inputs: {
outputs = { self, nixpkgs, unstable, sops-nix, ... }@inputs:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
nixosConfigurations = {
jokum = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@ -24,5 +31,8 @@
];
};
};
devShells = forAllSystems (system: {
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
});
};
}

6
shell.nix Normal file
View File

@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
sops
];
}