From d3a7998005b532d2f3905c3756ec9b3355d962bd Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Mon, 22 Apr 2024 21:45:38 -0500 Subject: [PATCH] added devshell. --- flake.nix | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 277a096..0e8d5b5 100644 --- a/flake.nix +++ b/flake.nix @@ -14,10 +14,6 @@ url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; }; - - # Shameless plug: looking for a way to nixify your themes and make - # everything match nicely? Try nix-colors! - # nix-colors.url = "github:misterio77/nix-colors"; }; outputs = { @@ -28,8 +24,25 @@ ... } @ inputs: let inherit (self) outputs; + forAllSystems = nixpkgs.lib.genAttrs [ + "x86_64-linux" + "aarch64-linux" + ]; in { - formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra; + formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); + + devShells = forAllSystems ( + system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + default = pkgs.mkShell { + packages = with pkgs; [ + just + ]; + }; + } + ); + # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { @@ -43,7 +56,6 @@ "gabe@archlaptop" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = {inherit inputs outputs;}; - # > Our main home-manager configuration file < modules = [ ./hosts/gabe-archlaptop.nix nixvim.homeManagerModules.nixvim @@ -52,7 +64,6 @@ "gabe@gv-workstation" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = {inherit inputs outputs;}; - # > Our main home-manager configuration file < modules = [ ./hosts/gabe-gv-workstation.nix nixvim.homeManagerModules.nixvim