Skip to content

Commit

Permalink
Add cachix nix config
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeChannings committed Sep 17, 2024
1 parent c75040b commit c83fab8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/binary-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Build packages
run: |
export NIXPKGS_ALLOW_UNFREE=1
nix run --accept-flake-config --impure .#home-manager -- build --impure --flake .#luke
nix run --accept-flake-config --impure .#home-manager -- build --accept-flake-config --impure --flake .#luke
- name: Build dev shell
run: |
export NIXPKGS_ALLOW_UNFREE=1
nix develop --impure --accept-flake-config --build
nix develop --impure --accept-flake-config --accept-flake-config --build
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Build packages
run: |
export NIXPKGS_ALLOW_UNFREE=1
nix run --accept-flake-config .#home-manager -- build --impure --flake .#luke
nix run --accept-flake-config .#home-manager -- build --accept-flake-config --impure --flake .#luke
tar -chf home-files.tar.xz ./result/home-files
- name: Release
uses: softprops/action-gh-release@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-darwin-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
- name: Build packages
run: |
export NIXPKGS_ALLOW_UNFREE=1
nix flake new -t .#darwin-system darwin-system
nix run --flake ./darwin-system#activate
nix flake new --accept-flake-config -t .#darwin-system darwin-system
nix run --accept-flake-config path:./darwin-system#activate
7 changes: 7 additions & 0 deletions templates/darwin-system/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,11 @@
};
};
};

nixConfig = {
extra-substituters = [ "https://luke-channings.cachix.org" ];
extra-trusted-public-keys = [
"luke-channings.cachix.org-1:ETsZ3R5ue9QOwO4spg8aGJMwMU6k5tQIaHWnTakGHjo="
];
};
}
7 changes: 7 additions & 0 deletions templates/devenv/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@
"aarch64-linux"
];
};

nixConfig = {
extra-substituters = [ "https://luke-channings.cachix.org" ];
extra-trusted-public-keys = [
"luke-channings.cachix.org-1:ETsZ3R5ue9QOwO4spg8aGJMwMU6k5tQIaHWnTakGHjo="
];
};
}

0 comments on commit c83fab8

Please sign in to comment.