From 9cede1ede275fad48fa48b673c08b31430cad9c0 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Fri, 9 Dec 2022 03:43:14 +0100 Subject: [PATCH] Add devShell including sops --- flake.nix | 12 +++++++++++- shell.nix | 6 ++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 shell.nix diff --git a/flake.nix b/flake.nix index 2248d1c..789e484 100644 --- a/flake.nix +++ b/flake.nix @@ -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 { }; + }); }; } diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7179e77 --- /dev/null +++ b/shell.nix @@ -0,0 +1,6 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + sops + ]; +}