Tauri setup with flake instead of nix-shell

Hello all I am having a lot of trouble trying to get my flake to develope tauri applications

``` nix

{
   description = "home lab flake configuration";

   inputs = {
      nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
   };



outputs = { self, nixpkgs, ... } @ inputs: 

let
    pkgs = nixpkgs.legacyPackages.x86_64-linux;
in

{  
    nixosConfigurations.dev-wsl = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
            ./configuration.nix 
            ./hosts/dev-wsl/configuration.nix
            ./users/aundre/configuration.nix
            ./modules/tauri/configuration.nix
        ];
    };
};

}

```

modules/tauri/configuration.nix

``` nix

{ config, lib, pkgs, … }:

{

environment.systemPackages = with pkgs; [
    cargo
    rustc
    cargo-tauri
    pkg-config
    wrapGAppsHook4
    bun

    librsvg
    webkitgtk_4_1
];

}

```

I am trying to figure out how to make a shell with $PKG_CONFIG_PATH and $LD_LIBRARY_PATH because that is the only thing not working in my configuration.

There is a nix shell that works for me on https://wiki.nixos.org/wiki/Tauri. I am mostly just curious about what I am missing that is

preventing my flake from functioning similarly.

I see you’re trying to set environment.systemPackages which seems weird since I think it only makes sense in NixOS.

What you are looking for is probably a devShell.

You can probably take that config that you said works for you and turn it into a flake with a devShell.

Thanks, I was able to get it working.

flake.nix

{
	description = "home lab flake configuration";

	inputs = {
		nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
	};

	outputs = { self, nixpkgs, ... } @ inputs: 
	let
		pkgs = nixpkgs.legacyPackages.x86_64-linux;
	in
	{
        nixosConfigurations.dev-wsl = nixpkgs.lib.nixosSystem {
            system = "x86_64-linux";
            modules = [
                ./configuration.nix ./hosts/dev-wsl/configuration.nix
                ./users/aundre/configuration.nix
            ];

        };
        
        #run "nix develop .#tauri --command fish" to start shell
        devShells.x86_64-linux.tauri = pkgs.mkShell {
            nativeBuildInputs = with pkgs; [
                pkg-config
                wrapGAppsHook4
                cargo
                cargo-tauri
                rustc
                bun
            ];

            buildInputs = with pkgs; [
                nodePackages."@angular/cli"
                librsvg
                webkitgtk_4_1
            ];

            shellHook = ''
                echo "starting tauri shell"
                export XDG_DATA_DIRS="$GSETTINGS_SCHEMAS_PATH" # Needed on Wayland to report the correct display scale
            '';
        };
	};
}