added devshell.
This commit is contained in:
		
							parent
							
								
									54e4e06093
								
							
						
					
					
						commit
						d3a7998005
					
				
					 1 changed files with 18 additions and 7 deletions
				
			
		
							
								
								
									
										25
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										25
									
								
								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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue