aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2025-01-19 13:00:31 +0100
committerKarel Kočí <cynerd@email.cz>2025-01-19 13:00:31 +0100
commit39dea4d3636b3162c7ff72977c25e7c713faade1 (patch)
treeca904d3d89620a9bd1a2ce93b454e7da93591b37 /flake.nix
parentc74091f90e8d936319baa168d336e4ab04e5c687 (diff)
downloadnixos-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.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index 0639d2c..52da5f4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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;