switch-to-configuration-ng: remove nested src directories

This was originally introduced when we ran into lib.fileset issues, but
we can use builtins.filterSource instead, like `nixos-firewall-tool`
does.
This commit is contained in:
Jared Baur
2026-02-21 16:28:29 -08:00
parent ad367807d6
commit db6ca70064
7 changed files with 2 additions and 3 deletions
@@ -9,6 +9,5 @@ For more information on what happens during a switch, see [what-happens-during-a
```
cd ./pkgs/by-name/sw/switch-to-configuration-ng
nix-shell ../../../.. -A switch-to-configuration-ng
cd ./src
cargo build
```
@@ -12,9 +12,9 @@ rustPlatform.buildRustPackage {
pname = "switch-to-configuration";
version = "0.1.0";
src = ./src;
src = builtins.filterSource (name: _: !(lib.hasSuffix ".nix" name)) ./.;
cargoLock.lockFile = ./src/Cargo.lock;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ];