diff options
author | Karel Kočí <cynerd@email.cz> | 2025-01-19 13:00:31 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2025-01-19 13:00:31 +0100 |
commit | 39dea4d3636b3162c7ff72977c25e7c713faade1 (patch) | |
tree | ca904d3d89620a9bd1a2ce93b454e7da93591b37 /flake.nix | |
parent | c74091f90e8d936319baa168d336e4ab04e5c687 (diff) | |
download | nixos-personal-39dea4d3636b3162c7ff72977c25e7c713faade1.tar.gz nixos-personal-39dea4d3636b3162c7ff72977c25e7c713faade1.tar.bz2 nixos-personal-39dea4d3636b3162c7ff72977c25e7c713faade1.zip |
Attempt to get Rpi to work
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -62,17 +62,23 @@ } // eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}".extend self.overlays.default; - in { - packages = - {default = pkgs.nixdeploy;} - // mapAttrs' (n: v: let + + osFilterMap = attr: + mapAttrs' (n: v: let os = if v.config.nixpkgs.hostPlatform.system == system then v else (v.extendModules {modules = [{nixpkgs.buildPlatform.system = system;}];}); in - nameValuePair "tarball-${n}" os.config.system.build.tarball) - (filterAttrs (_: v: v.config.system.build ? tarball) self.nixosConfigurations); + nameValuePair "${attr}-${n}" os.config.system.build."${attr}") + (filterAttrs (_: v: v.config.system.build ? "${attr}") + self.nixosConfigurations); + in { + packages = + {default = pkgs.nixdeploy;} + // (osFilterMap "toplevel") + // (osFilterMap "tarball") + // (osFilterMap "firmware"); legacyPackages = pkgs; devShells = filterPackages system (import ./devShells pkgs); formatter = pkgs.alejandra; |