I am playing with raspberry-pi-nix whose nixosConfigurations is the following.
nixosConfigurations = {
rpi-example = srcs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ self.nixosModules.raspberry-pi ./example ];
};
};
I copied and pasted the “./example” directory to my local directory and wrote the following flake.nix, that has identical rpi-example setup.
{
description = "raspberry-pi nixos configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
raspberry-pi-nix.url = "github:nix-community/raspberry-pi-nix?ref=refs/tags/v0.4.1";
};
outputs = srcs@{ self, ... }:
{
nixosConfigurations = {
rpi-example = srcs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ srcs.raspberry-pi-nix.nixosModules.raspberry-pi ./example ];
};
rpi-example-org = srcs.raspberry-pi-nix.nixosConfigurations.rpi-example;
};
};
}
Even though the output rpi-example-org is the same as that of the original rpi-example, the output of rpi-example in my flake.nix is quite different. I expected it to be the same.
What am I missing here…?