Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ To add the `determinate` flake as a [flake input][flake-inputs]:
}
```

> We recommend not using a [`follows`][follows] directive for [Nixpkgs] (`inputs.nixpkgs.follows = "nixpkgs"`) in conjunction with the Determinate flake, as it leads to cache misses for artifacts otherwise available from [FlakeHub Cache][cache].

You can quickly set up Determinate using the `nixosModules.default` module output from this flake.
Here's an example NixOS configuration for the current stable NixOS:

Expand Down
96 changes: 42 additions & 54 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
description = "Determinate";

inputs = {
nix.url = "https://flakehub.com/f/DeterminateSystems/nix-src/*";
nixpkgs.url = "https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/0.1";
determinate-nix = {
url = "https://flakehub.com/f/DeterminateSystems/nix-src/*";
inputs.nixpkgs.follows = "determinate-nixpkgs";
};
determinate-nixpkgs.url = "https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/0.1";

determinate-nixd-aarch64-linux = {
url = "https://install.determinate.systems/determinate-nixd/tag/v3.15.2/aarch64-linux";
Expand All @@ -20,7 +23,7 @@
};

outputs =
{ self, nixpkgs, ... }@inputs:
{ self, determinate-nixpkgs, ... }@inputs:
let
supportedSystems = [
"x86_64-linux"
Expand All @@ -30,11 +33,11 @@

forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
determinate-nixpkgs.lib.genAttrs supportedSystems (
system:
f {
inherit system;
pkgs = import nixpkgs {
pkgs = import determinate-nixpkgs {
inherit system;
config = {
allowUnfree = true;
Expand Down