Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
flake: make module & overlay arch-agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
Naxdy committed Oct 2, 2024
1 parent 2b0291c commit d8a728c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
environment.systemPackages = [
Expand Down
11 changes: 5 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@
{ self
, nixpkgs
, flake-utils
}: flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: {

}: (flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: {
packages.default =
let
pkgs = import nixpkgs {
inherit system;
overlays = [
self.overlays.${system}.default
self.overlays.default
];
};
in
pkgs.ryujinx;

})) // {
nixosModules.default = { config, lib, pkgs, ... }: {
nixpkgs.overlays = [
self.overlays.${system}.default
self.overlays.default
];
};

Expand All @@ -35,5 +34,5 @@
src = self;
};
};
});
};
}

0 comments on commit d8a728c

Please sign in to comment.