From 60a913b3531956e75d19e46c833e7f5c893cddc8 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 19 Aug 2024 21:15:42 +0000 Subject: [PATCH] Add aarch64 nixos output --- docs/src/building.md | 6 ++++++ flake.nix | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/docs/src/building.md b/docs/src/building.md index f9153874..2cad086d 100644 --- a/docs/src/building.md +++ b/docs/src/building.md @@ -9,6 +9,12 @@ build your own tarball instead of relying on a prebuilt one: sudo nix run github:nix-community/NixOS-WSL#nixosConfigurations.default.config.system.build.tarballBuilder ``` +For Arm-based PCs, run: + +```sh +sudo nix run github:nix-community/NixOS-WSL#nixosConfigurations.aarch64.config.system.build.tarballBuilder +``` + Or, if you want to build with local changes, run inside your checkout: ```sh diff --git a/flake.nix b/flake.nix index d26ce9ca..8e9e34e8 100644 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,14 @@ ]; }; + aarch64 = nixpkgs.lib.nixosSystem { + system = "aarch64-linux"; + modules = [ + self.nixosModules.default + (config { }) + ]; + }; + modern = nixpkgs.lib.warn "nixosConfigurations.modern has been renamed to nixosConfigurations.default" default; legacy = nixpkgs.lib.nixosSystem {