-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Nix/NixOS Installation | ||
|
||
> Hatsu uses the `x86-64-v3` target architecture for optimal performance. | ||
> | ||
> If you are using an older processor, you currently need to build locally and change the corresponding values in `.cargo/config.toml`. | ||
Hatsu is available in Nixpkgs, NUR and Flakes. | ||
|
||
macOS (Darwin) is not supported. | ||
|
||
## Nixpkgs | ||
|
||
Nixpkgs only has a stable version, you need nixos-24.11 or nixos-unstable. | ||
|
||
```nix | ||
{ pkgs, ... }: { | ||
environment.systemPackages = with pkgs; [ | ||
hatsu | ||
]; | ||
} | ||
``` | ||
|
||
## NUR (SN0WM1X) | ||
|
||
The SN0WM1X NUR may contain beta versions, but there may be a delay. | ||
|
||
You need to [follow the instructions to set up NUR](https://github.com/nix-community/nur#installation) first. | ||
|
||
```nix | ||
{ pkgs, ... }: { | ||
environment.systemPackages = with pkgs; [ | ||
nur.repos.sn0wm1x.hatsu | ||
]; | ||
} | ||
``` | ||
|
||
## Flakes | ||
|
||
> This is untested. | ||
Add the hatsu repository directly to your flake inputs, up to date but unstable. | ||
|
||
```nix | ||
{ | ||
inputs: { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
# ... | ||
hatsu.url = "github:importantimport/hatsu"; | ||
hatsu.inputs.nixpkgs.follows = "nixpkgs"; | ||
# ... | ||
}; | ||
} | ||
``` | ||
|
||
```nix | ||
{ inputs, pkgs, ... }: { | ||
environment.systemPackages = [ | ||
inputs.hatsu.packages.${pkgs.system}.default; | ||
]; | ||
} | ||
``` |