add the cache links to nixConfig now that I actually understand it

This commit is contained in:
Daylin Morgan 2024-01-26 00:11:42 -06:00
parent 9d47cdc61e
commit c87b8487ed
Signed by: daylin
GPG Key ID: C1E52E7DD81DF79F
4 changed files with 14 additions and 18 deletions

View File

@ -22,18 +22,6 @@ jobs:
- uses: cachix/install-nix-action@v25 # v25 - uses: cachix/install-nix-action@v25 # v25
with: with:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: >
trusted-public-keys =
hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=
nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=
daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k=
cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters =
https://hyprland.cachix.org
https://nixpkgs-wayland.cachix.org
https://daylin.cachix.org
https://cache.nixos.org
- uses: DeterminateSystems/magic-nix-cache-action@v2 - uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v14 - uses: cachix/cachix-action@v14

View File

@ -17,6 +17,18 @@
wezterm.inputs.nixpkgs.follows = "nixpkgs"; wezterm.inputs.nixpkgs.follows = "nixpkgs";
}; };
nixConfig = {
extra-substituters = [
"https://hyprland.cachix.org"
"https://nixpkgs-wayland.cachix.org"
"https://daylin.cachix.org"
];
extra-trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k="
];
};
outputs = inputs @ { outputs = inputs @ {
self, self,
nixpkgs, nixpkgs,

View File

@ -26,15 +26,10 @@
trusted-users = ["@wheel"]; trusted-users = ["@wheel"];
accept-flake-config = true; accept-flake-config = true;
# nixConfig = {
substituters = [ substituters = [
"https://hyprland.cachix.org"
"https://nixpkgs-wayland.cachix.org"
"https://daylin.cachix.org" "https://daylin.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k=" "daylin.cachix.org-1:fLdSnbhKjtOVea6H9KqXeir+PyhO+sDSPhEW66ClE/k="
]; ];
}; };

3
styx
View File

@ -76,7 +76,8 @@ cache() {
cachix watch-exec daylin \ cachix watch-exec daylin \
-- \ -- \
nix build "$FLAKE_PATH#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" \ nix build "$FLAKE_PATH#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" \
--print-build-logs --print-build-logs \
--accept-flake-config
end=$(date +%s) end=$(date +%s)
runtime=$(date -d@$((end-start)) +'%M minutes, %S seconds') runtime=$(date -d@$((end-start)) +'%M minutes, %S seconds')