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 + ]; +}