working on cache

This commit is contained in:
Ingolf Wagner 2023-06-09 01:24:53 +02:00
parent f8967389ef
commit 761bdf91a0
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
9 changed files with 43 additions and 28 deletions

View file

@ -178,10 +178,6 @@
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
settings = {
substituters = [ "https://colmena.cachix.org" ];
trusted-public-keys = [ "colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=" ];
};
}; };
environment.systemPackages = [ environment.systemPackages = [
nixpkgs-fmt.defaultPackage.${system} nixpkgs-fmt.defaultPackage.${system}
@ -194,6 +190,19 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
permown.nixosModules.permown permown.nixosModules.permown
disko.nixosModules.disko disko.nixosModules.disko
{ nix.settings.substituters = [ "https://cache.nixos.org/" ]; }
{
nix.settings = {
substituters = [ "https://colmena.cachix.org" ];
trusted-public-keys = [ "colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=" ];
};
}
#{
# nix.settings = {
# substituters = [ "http://chungus.private:5000" "http://robi.private:5000" ];
# #trusted-public-keys = [ "to be created" ];
# };
#}
]; ];
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -0,0 +1,13 @@
{ ... }:
{
services.nix-serve = {
enable = true;
# needed if i want to trust my own build packages and dirivations
# nix-store --generate-binary-cache-key key-name secret-key-file public-key-file
# secretKeyFile = sops.nixServeSecretKeyFile.path
};
}

View file

@ -43,6 +43,8 @@
#./kiosk.nix #./kiosk.nix
./trilium.nix ./trilium.nix
./cache.nix
]; ];
components.network.enable = true; components.network.enable = true;

View file

@ -20,7 +20,6 @@
./borg.nix ./borg.nix
./trilium.nix ./trilium.nix
]; ];
users.users.mainUser.extraGroups = [ "pipewire" ]; users.users.mainUser.extraGroups = [ "pipewire" ];
@ -35,7 +34,6 @@
networking.hostName = "cream"; networking.hostName = "cream";
services.flatpak.enable = true; services.flatpak.enable = true;
security.wrappers = { security.wrappers = {

View file

@ -0,0 +1,13 @@
{ ... }:
{
services.nix-serve = {
enable = true;
# needed if i want to trust my own build packages and dirivations
# nix-store --generate-binary-cache-key key-name secret-key-file public-key-file
# secretKeyFile = sops.nixServeSecretKeyFile.path
};
}

View file

@ -53,9 +53,10 @@
./grafana.nix ./grafana.nix
./telegraf.nix ./telegraf.nix
./sync-opentracker.nix ./sync-opentracker.nix
./sync-torrent.nix ./sync-torrent.nix
./cache.nix
]; ];
components.network.enable = true; components.network.enable = true;

View file

@ -1,14 +0,0 @@
# WARN: this file will get overwritten by $ cachix use <name>
{ pkgs, lib, ... }:
let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
imports = lib.mapAttrsToList toImport
(lib.filterAttrs filterCaches (builtins.readDir folder));
in
{
inherit imports;
nix.settings.substituters = [ "https://cache.nixos.org/" ];
}

View file

@ -1,6 +0,0 @@
{
nix.settings = {
substituters = [ "https://all-hies.cachix.org" ];
trusted-public-keys = [ "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k=" ];
};
}

View file

@ -6,7 +6,6 @@
#./icecast.nix #./icecast.nix
#./audio.nix #./audio.nix
./cachix.nix
./mail-stuff.nix ./mail-stuff.nix
./packages.nix ./packages.nix
./size.nix ./size.nix