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
with:
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: cachix/cachix-action@v14

View File

@ -17,6 +17,18 @@
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 @ {
self,
nixpkgs,

View File

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

3
styx
View File

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