diff options
| -rw-r--r-- | flake.lock | 6 | ||||
| -rw-r--r-- | flake.nix | 23 | ||||
| -rw-r--r-- | lib/default.nix | 4 | ||||
| -rw-r--r-- | nixos/modules/turris-defaults.nix | 2 | 
4 files changed, 18 insertions, 17 deletions
@@ -16,11 +16,11 @@      },      "nixpkgs-stable": {        "locked": { -        "lastModified": 1649619156, -        "narHash": "sha256-p0q4zpuKMwrzGF+5ZU7Thnpac5TinhDI9jr2mBxhV4w=", +        "lastModified": 1650244918, +        "narHash": "sha256-DsS5nxjTpnoUC4pNXJI1rit7TnDTij8vQDa5PtcDCD0=",          "owner": "NixOS",          "repo": "nixpkgs", -        "rev": "e7d63bd0d50df412f5a1d8acfa3caae75522e347", +        "rev": "7b38b03d76ab71bdc8dc325e3f6338d984cc35ca",          "type": "github"        },        "original": { @@ -16,21 +16,18 @@        lib = import ./lib { self = self; nixpkgs-stable = nixpkgs-stable; }; +      nixosConfigurations = { +        tarballMox = self.lib.nixturrisTarballSystem { board = "mox"; }; +        tarballOmnia = self.lib.nixturrisTarballSystem { board = "omnia"; }; +      }; +      } // flake-utils.lib.eachSystem (flake-utils.lib.defaultSystems ++ ["armv7l-linux"]) (        system: { -        packages = let - -          createTarball = {...} @args: (self.lib.nixturrisSystem ({ -              modules = [ (import ./tarball.nix args.board) ]; -            } // args)).config.system.build.tarball; - -        in { - -          tarballMox = createTarball { board = "mox"; }; -          tarballOmnia = createTarball { board = "omnia"; }; -          crossTarballMox = createTarball { board = "mox"; system = system; }; -          crossTarballOmnia = createTarball { board = "omnia"; system = system; }; - +        packages = { +          tarballMox = self.nixosConfigurations.tarballMox.config.system.build.tarball; +          tarballOmnia = self.nixosConfigurations.tarballOmnia.config.system.build.tarball; +          crossTarballMox = (self.lib.nixturrisTarballSystem { board = "mox"; system = system; }).config.system.build.tarball; +          crossTarballOmnia = (self.lib.nixturrisTarballSystem { board = "omnia"; system = system; }).config.system.build.tarball;          } // flake-utils.lib.filterPackages system (flake-utils.lib.flattenTree (            import ./pkgs { nixpkgs = nixpkgs-stable.legacyPackages."${system}"; }          )); diff --git a/lib/default.nix b/lib/default.nix index 163e06b..5627879 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -46,4 +46,8 @@      };    }); +  nixturrisTarballSystem = {...} @args: (nixturrisSystem ({ +      modules = [ (import ../tarball.nix args.board) ]; +    } // args)); +  } diff --git a/nixos/modules/turris-defaults.nix b/nixos/modules/turris-defaults.nix index 2f61827..fe9c4be 100644 --- a/nixos/modules/turris-defaults.nix +++ b/nixos/modules/turris-defaults.nix @@ -38,7 +38,7 @@ in {      ] ++ optionals (config.turris.board == "mox") [        "earlycon=ar3700_uart,0xd0012000" "console=ttyMV0,115200"        "pcie_aspm=off" # Fix for crashes due to SError Interrupt on ath10k load -    ] ++ optional (config.turris.board == "omnia") [ +    ] ++ optionals (config.turris.board == "omnia") [        "earlyprintk" "console=ttyS0,115200"      ];  | 
