Set up homes and systems to use cache
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 14m11s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 14m11s
This commit is contained in:
parent
5766bdda99
commit
38e7251300
@ -20,6 +20,7 @@ jobs:
|
|||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
# Make sure we're using sandbox
|
# Make sure we're using sandbox
|
||||||
sandbox-fallback = false
|
sandbox-fallback = false
|
||||||
|
|
||||||
extra-substituters = https://nix-cache.nul.ie/main
|
extra-substituters = https://nix-cache.nul.ie/main
|
||||||
extra-trusted-public-keys = main:mMChkG8LwXrFirVfudqjSHasK1jV31OVElYD3eImYl8=
|
extra-trusted-public-keys = main:mMChkG8LwXrFirVfudqjSHasK1jV31OVElYD3eImYl8=
|
||||||
- name: Set up attic
|
- name: Set up attic
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) concatStringsSep;
|
|
||||||
inherit (lib.my) attrsToNVList;
|
inherit (lib.my) attrsToNVList;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -13,9 +12,7 @@ in
|
|||||||
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
|
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
|
||||||
''
|
''
|
||||||
experimental-features = nix-command flakes ca-derivations repl-flake
|
experimental-features = nix-command flakes ca-derivations repl-flake
|
||||||
#substituters = https://nix-cache.nul.ie https://cache.nixos.org
|
${lib.my.c.nix.cache.conf}
|
||||||
substituters = https://cache.nixos.org
|
|
||||||
trusted-public-keys = ${concatStringsSep " " lib.my.c.nix.cacheKeys}
|
|
||||||
'');
|
'');
|
||||||
|
|
||||||
INSTALLER_SSH_OPTS = "-i .keys/deploy.key";
|
INSTALLER_SSH_OPTS = "-i .keys/deploy.key";
|
||||||
|
@ -235,12 +235,9 @@ in
|
|||||||
exact = true;
|
exact = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
settings = {
|
settings = with lib.my.c.nix; {
|
||||||
substituters = [
|
extra-substituters = cache.substituters;
|
||||||
#"https://nix-cache.nul.ie"
|
extra-trusted-public-keys = cache.keys;
|
||||||
"https://cache.nixos.org"
|
|
||||||
];
|
|
||||||
trusted-public-keys = lib.my.c.nix.cacheKeys;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
{ lib }: rec {
|
{ lib }:
|
||||||
|
let
|
||||||
|
inherit (lib) concatStringsSep;
|
||||||
|
in
|
||||||
|
rec {
|
||||||
# See https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/ids.nix
|
# See https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/ids.nix
|
||||||
ids = {
|
ids = {
|
||||||
uids = {
|
uids = {
|
||||||
@ -32,10 +36,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
cacheKeys = [
|
cache = rec {
|
||||||
"nix-cache.nul.ie-1:XofkqdHQSGFoPjB6aRohQbCU2ILKFqhNjWfoOdQgF5Y="
|
substituters = [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"https://nix-cache.${pubDomain}/main"
|
||||||
];
|
];
|
||||||
|
keys = [
|
||||||
|
"main:mMChkG8LwXrFirVfudqjSHasK1jV31OVElYD3eImYl8="
|
||||||
|
];
|
||||||
|
conf = ''
|
||||||
|
extra-substituters = ${concatStringsSep " " substituters}
|
||||||
|
extra-trusted-public-keys = ${concatStringsSep " " keys}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pubDomain = "nul.ie";
|
pubDomain = "nul.ie";
|
||||||
|
@ -41,14 +41,11 @@ in
|
|||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs'.mine.nix;
|
package = pkgs'.mine.nix;
|
||||||
settings = {
|
settings = with lib.my.c.nix; {
|
||||||
trusted-users = [ "@wheel" ];
|
trusted-users = [ "@wheel" ];
|
||||||
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
|
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
|
||||||
substituters = [
|
extra-substituters = cache.substituters;
|
||||||
#"https://nix-cache.nul.ie"
|
extra-trusted-public-keys = cache.keys;
|
||||||
"https://cache.nixos.org"
|
|
||||||
];
|
|
||||||
trusted-public-keys = lib.my.c.nix.cacheKeys;
|
|
||||||
};
|
};
|
||||||
registry = {
|
registry = {
|
||||||
pkgs = {
|
pkgs = {
|
||||||
|
Loading…
Reference in New Issue
Block a user