mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
add the cache links to nixConfig now that I actually understand it
This commit is contained in:
parent
9d47cdc61e
commit
c87b8487ed
4 changed files with 14 additions and 18 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -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
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -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,
|
||||||
|
|
|
@ -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
3
styx
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue