added non-flake example, and binary cache example

This commit is contained in:
Spencer Heywood 2024-04-08 08:54:43 -06:00 committed by Adam Stephens
parent 6a4c0e0913
commit ae0a500435
No known key found for this signature in database

View file

@ -12,6 +12,19 @@ https://app.cachix.org/cache/nixos-x13s
Ensure you are not overriding the nixpkgs input when consuming this flake, or you may not be able to take advantages of this cache. Ensure you are not overriding the nixpkgs input when consuming this flake, or you may not be able to take advantages of this cache.
NixOS configuration example:
```nix
nix.settings = {
substituters = [
"https://nixos-x13s.cachix.org"
];
trusted-public-keys = [
"nixos-x13s.cachix.org-1:SzroHbidolBD3Sf6UusXp12YZ+a5ynWv0RtYF0btFos="
];
};
```
## Add with a flake ## Add with a flake
```nix ```nix
@ -52,4 +65,19 @@ Ensure you are not overriding the nixpkgs input when consuming this flake, or yo
## Add using not a flake ## Add using not a flake
Not documented, but feel free to submit a PR. Clone the repository:
```
git clone https://codeberg.org/adamcstephens/nixos-x13s /etc/nixos/nixos-x13s
```
Then reference the module in your `configuration.nix` and use the module as documented in the flake example above:
```nix
imports =
[
./nixos-x13s/module.nix
];
nixos-x13s.enable = true;
...
```