Skip to content

Commit

Permalink
add aarch64 to systems
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka committed Jun 9, 2024
1 parent 7b251c9 commit c10b066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

outputs = inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
systems = [ "x86_64-linux" "aarch64-linux" ];
imports = [ ./modules ];
};
}
10 changes: 6 additions & 4 deletions modules/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ in {
```
*/
flake.nixosConfigurations = {
vm = nixosSystemFor "x86_64-linux" ./vm.nix;
vm-rootless = nixosSystemFor "x86_64-linux" ./vm-rootless.nix;
vm-x86_64-linux = nixosSystemFor "x86_64-linux" ./vm.nix;
vm-rootless-x86_64-linux = nixosSystemFor "x86_64-linux" ./vm-rootless.nix;
vm-aarch64-linux = nixosSystemFor "aarch64-linux" ./vm.nix;
vm-rootless-aarch64-linux = nixosSystemFor "aarch64-linux" ./vm-rootless.nix;
};

perSystem = { system, ... }: {
Expand All @@ -77,8 +79,8 @@ in {
```
*/
apps = {
vm = vmApp "vm";
vm-rootless = vmApp "vm-rootless";
vm = vmApp "vm-${system}";
vm-rootless = vmApp "vm-rootless-${system}";
};

# NixOS tests for nix-snapshotter.
Expand Down

0 comments on commit c10b066

Please sign in to comment.