From a020611d492cd5c547faf3efb9b681d7ca336ae6 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:46:39 +0100 Subject: [PATCH] test building optimized packages --- home-manager/firefox/config/privacy.nix | 4 ++-- modules/nix/settings.nix | 9 ++++++++- modules/services/nix-cache.nix | 18 ++++++++++++++++++ secrets/binary-cache.age | 7 +++++++ secrets/secrets.nix | 1 + systems/amd-server/configuration.nix | 1 + systems/pc/configuration.nix | 8 ++++++++ 7 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 modules/services/nix-cache.nix create mode 100644 secrets/binary-cache.age diff --git a/home-manager/firefox/config/privacy.nix b/home-manager/firefox/config/privacy.nix index a6c2d30..f3c3474 100644 --- a/home-manager/firefox/config/privacy.nix +++ b/home-manager/firefox/config/privacy.nix @@ -57,14 +57,14 @@ # Load the pages displayed on the new tab page in a private container when # creating thumbnails. "privacy.usercontext.about_newtab_segregation.enabled" = true; - # Disable WebGL + # Disable WebGL (override: enabled, to make those websites work.) # Disables the WebGL function, to prevent (ab)use the full power of the graphics # card (http://www.uniquemachine.org/">fingerprinting with WebGL. Another # issue is, that websites can ssh-ed25519 DCzi1A LrkyZ8axOcdIB+uaATOmn785EzMzTvhujhcSxmBx8kE +E57IVdAOTIt1TWeyBYsHembim1YPKRxJYDQTNiPhIGI +-> ssh-ed25519 lNJElA Y1jcFIXsCN0/s6xiLCLhQQhrc0N5Acpmv5K9xIYu42k +WrhmfkCpLL4e+QhFwFICeH5BZDUQOOk4WyFoYnGbcVU +--- LIVAI67ZG/+WLYki2A3HEmf6HMaLMZiAiDhgQYoWxdA +>cT{cR~\.k;$9m-s7>Z]ېI62 BԱ~0.-0}j݊0JeIaH(wƪjG4>FM.t bSÆ \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 436d94a..0293e48 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -35,4 +35,5 @@ in "plausible-keybase.age".publicKeys = [ adam-site kop ]; "adminarea.age".publicKeys = [ adam-site kop ]; "radicale.age".publicKeys = [ mini-pc mini-pc-proxmox kop ]; + "binary-cache.age".publicKeys = [ kop amd-server ]; } diff --git a/systems/amd-server/configuration.nix b/systems/amd-server/configuration.nix index b8fc557..a5bb336 100644 --- a/systems/amd-server/configuration.nix +++ b/systems/amd-server/configuration.nix @@ -9,6 +9,7 @@ ./hardware-configuration.nix ../../modules/kernel.nix ../../modules/services/ssh.nix + ../../modules/services/nix-cache.nix ]; custom = { diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 705a6f8..133f551 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -134,6 +134,14 @@ #} ]; + # https://github.com/NixOS/nixpkgs/blob/master/lib/systems/architectures.nix + nix.settings.system-features = ["znver3" "gccarch-znver3" ]; + nixpkgs.hostPlatform = { + gcc.arch = "znver3"; + gcc.tune = "znver3"; + system = "x86_64-linux"; + }; + # fix index services.xserver.extraConfig = '' Section "Monitor"