From c560e894fbd8046ea3c6b7d926112e25a2b3b5f1 Mon Sep 17 00:00:00 2001 From: CherryKitten Date: Sun, 24 Mar 2024 19:02:29 +0100 Subject: [PATCH] devshell! --- flake.nix | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 0647225..e46aacf 100644 --- a/flake.nix +++ b/flake.nix @@ -48,20 +48,27 @@ { inherit lib; formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt); - colmena = { - meta = { - description = "All my NixoS machines"; - specialArgs = { inherit inputs outputs; }; - nixpkgs = import nixpkgs { - system = "x86_64-linux"; - overlays = [ ]; + + devShells = forAllSystems (system: + let pkgs = import nixpkgs { system = system; }; in + { default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ nix colmena git ]; }; }); + + colmena = + { + meta = { + description = "All my NixoS machines"; + specialArgs = { inherit inputs outputs; }; + nixpkgs = import nixpkgs { + system = "x86_64-linux"; + overlays = [ ]; + }; }; + + bengal = mkHost { hostname = "bengal"; }; + + maine-coon = mkHost { hostname = "maine-coon"; }; }; - bengal = mkHost { hostname = "bengal"; }; - - maine-coon = mkHost { hostname = "maine-coon"; }; - }; nixosConfigurations.test = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = {