You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/using/install.mdx
+62-1Lines changed: 62 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,4 +124,65 @@ Browser support is experimental and may be unreliable. Developing extensions or
124
124
125
125
## Nix
126
126
127
-
moonlight offers [a Nix flake](https://github.com/moonlight-mod/moonlight/blob/main/flake.nix) which has an overlay to install moonlight on top of Discord. The flake is not monitored, so if it fails to build, please leave an issue.
127
+
moonlight offers a [nixpkgs](https://search.nixos.org/packages?show=moonlight) package and a [flake](https://github.com/moonlight-mod/moonlight/blob/main/flake.nix), which has the option to use nightly if the `develop` branch is selected and provides declarative home-manager configuration options.
128
+
129
+
Please leave an issue on the [nixpkgs](https://github.com/nixos/nixpkgs/issues) or [moonlight](https://github.com/moonlight-mod/moonlight/issues) repository depending on which one you are using in case of a build failure.
130
+
131
+
### Nixpkgs (recommended)
132
+
133
+
User-level installation:
134
+
135
+
```nix title="configuration.nix"
136
+
users.users.alice.packages = [
137
+
(pkgs.discord.override { withMoonlight = true; })
138
+
];
139
+
```
140
+
141
+
System-wide installation:
142
+
143
+
```nix title="configuration.nix"
144
+
environment.systemPackages = [
145
+
(pkgs.discord.override { withMoonlight = true; })
146
+
];
147
+
```
148
+
149
+
### Flake
150
+
151
+
```nix title="flake.nix"
152
+
{
153
+
inputs.moonlight = {
154
+
url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly.
155
+
inputs.nixpkgs.follows = "nixpkgs";
156
+
}
157
+
}
158
+
```
159
+
160
+
:::note
161
+
It's a Nix to JSON converter. It is best to do it imperatively and then look at the `~/.config/moonlight-mod/stable,ptb,canary,development.json`
0 commit comments