Celeste: Difference between revisions

Klinger (talk | contribs)
Jopejoe1 (talk | contribs)
Add section about using impure env vars
 
Line 14: Line 14:
or use the {{nixos:package|celestegame}} package.
or use the {{nixos:package|celestegame}} package.


For using the <code>celestegame</code> package,
For using the <code>celestegame</code> package follow one of the 3 methodes:
first download the Linux version of Celeste on [https://maddymakesgamesinc.itch.io/celeste itch.io],
 
=== Manual Updates ===
 
First download the Linux version of Celeste on [https://maddymakesgamesinc.itch.io/celeste itch.io],
and then add it to Nix store by running this command:
and then add it to Nix store by running this command:


Line 23: Line 26:


You can then install Celeste by the <code>celestegame</code> package on Nixpkgs.
You can then install Celeste by the <code>celestegame</code> package on Nixpkgs.
=== Automatic Updates ===
For automatic updates you need to let the nix daemon know of your itch.io API key you can get one on [https://itch.io/user/settings/api-keys].
On NixOS you can do this by adding an <code>EnvironmentFile</code> to the systemd service staring the nix-daemon and adding the API key to the <code>EnvironmentFile</code> specified you can see an example below.
<syntaxhighlight lang="nix">
{
  systemd.services.nix-daemon.serviceConfig.EnvironmentFile = "/path/to/file/with/env/vars";
}
</syntaxhighlight>
<syntaxhighlight lang="bash">
NIX_ITCHIO_API_KEY=my_secret_api_key
</syntaxhighlight>
=== None itch.io version ===


You can override the source to use something other than the itch.io version,
You can override the source to use something other than the itch.io version,