working on cache

feature/nixinite
Ingolf Wagner 2023-06-09 01:24:53 +02:00
parent f8967389ef
commit 761bdf91a0
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
9 changed files with 43 additions and 28 deletions

View File

@ -178,10 +178,6 @@
extraOptions = ''
experimental-features = nix-command flakes
'';
settings = {
substituters = [ "https://colmena.cachix.org" ];
trusted-public-keys = [ "colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=" ];
};
};
environment.systemPackages = [
nixpkgs-fmt.defaultPackage.${system}
@ -194,6 +190,19 @@
home-manager.nixosModules.home-manager
permown.nixosModules.permown
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.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
./trilium.nix
./cache.nix
];
components.network.enable = true;

View File

@ -20,7 +20,6 @@
./borg.nix
./trilium.nix
];
users.users.mainUser.extraGroups = [ "pipewire" ];
@ -35,7 +34,6 @@
networking.hostName = "cream";
services.flatpak.enable = true;
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
./telegraf.nix
./sync-opentracker.nix
./sync-torrent.nix
./cache.nix
];
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
#./audio.nix
./cachix.nix
./mail-stuff.nix
./packages.nix
./size.nix