flake: make module & overlay arch-agnostic
Some checks failed
Release job / Release for linux-arm64 (push) Failing after 1s
Release job / Release for linux-x64 (push) Failing after 1s
Release job / Release MacOS universal (push) Failing after 1s
Release job / Create tag (push) Has been cancelled
Release job / Release for win-x64 (push) Has been cancelled
Release job / flatpak_release (push) Has been cancelled

This commit is contained in:
Naxdy 2024-10-02 14:52:31 +02:00
parent 2b0291c57c
commit d8a728c735
Signed by: Naxdy
GPG key ID: CC15075846BCE91B
2 changed files with 6 additions and 7 deletions

View file

@ -33,7 +33,7 @@ Or install it declaratively by adding the following to your `flake.nix` (either
} }
``` ```
The Ryujinx flake provides `nixosModules.x86_64-linux.default` and `nixosModules.aarch64-linux.default` which will add the Ryujinx `overlay` (also available standalone via `overlays.default`), providing the `ryujinx` package to your installation, which can then be pulled in as usual, via e.g.: The Ryujinx flake provides `nixosModules.default` and `nixosModules.default` which will add the Ryujinx `overlay` (also available standalone via `overlays.default`), providing the `ryujinx` package to your installation, which can then be pulled in as usual, via e.g.:
```nix ```nix
environment.systemPackages = [ environment.systemPackages = [

View file

@ -11,22 +11,21 @@
{ self { self
, nixpkgs , nixpkgs
, flake-utils , flake-utils
}: flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: { }: (flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: {
packages.default = packages.default =
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
overlays = [ overlays = [
self.overlays.${system}.default self.overlays.default
]; ];
}; };
in in
pkgs.ryujinx; pkgs.ryujinx;
})) // {
nixosModules.default = { config, lib, pkgs, ... }: { nixosModules.default = { config, lib, pkgs, ... }: {
nixpkgs.overlays = [ nixpkgs.overlays = [
self.overlays.${system}.default self.overlays.default
]; ];
}; };
@ -35,5 +34,5 @@
src = self; src = self;
}; };
}; };
}); };
} }