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 100ebe7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binary-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- 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
6 changes: 3 additions & 3 deletions .github/workflows/template-darwin-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- templates/darwin-system/*

jobs:
binary-cache:
template-test:
permissions:
contents: write
runs-on: macos-latest
Expand All @@ -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
sudo nix run --accept-flake-config path:"$(pwd)/darwin-system"#activate
2 changes: 1 addition & 1 deletion templates/darwin-system/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in
modules = [
(dotfiles.lib.configureOsModules {
osModules = attrValues dotfiles.modules.darwin;
homeModules = attrValues dotfiles.modules.homeModules;
homeModules = dotfiles.lib.homeModulesWithDisabled [ "default-apps" ];
})
(
let
Expand Down
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 100ebe7

Please sign in to comment.