Skip to content

Commit 2ba840c

Browse files
authored
Merge pull request #18 from different-name/install-flake-package
install.mdx: add section for using flake package
2 parents 32dcc82 + a7fef86 commit 2ba840c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/content/docs/using/install.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ environment.systemPackages = [
162162
}
163163
```
164164

165+
The flake references moonlight's source code directly, which makes it useful for switching to the nightly branch (e.g. if moonlight stable is broken), or to use the most recent changes without waiting for them to land in nixpkgs.
166+
167+
You can use the latest `moonlight` package by explicitly passing it to the Discord override:
168+
169+
```nix
170+
discord.override {
171+
withMoonlight = true;
172+
moonlight = inputs.moonlight.packages.${pkgs.system}.moonlight;
173+
}
174+
```
175+
165176
If you use home-manager, you can import moonlight's module, and copy [your existing moonlight config](/using/getting-started#editing-moonlights-config) into your configuration:
166177

167178
```nix title="home.nix"

0 commit comments

Comments
 (0)