remove cache

This commit is contained in:
Kopatz
2025-02-11 12:47:31 +01:00
parent a020611d49
commit 00384c9f5e
3 changed files with 13 additions and 12 deletions

View File

@@ -20,11 +20,12 @@ in {
nix = {
optimise.automatic = cfg.optimise;
settings.experimental-features = [ "nix-command" "flakes" ];
settings.substituters =
lib.mkIf (config.networking.hostName == "kop-pc")
[ "http://192.168.0.20:5000" ];
settings.trusted-public-keys =
[ "amd-server:r5S7vv/3sZ0knhMvpUzRHXFlBHgov2tLhtoKqLXYf28=" ];
# not used
#settings.substituters =
# lib.mkIf (config.networking.hostName == "kop-pc")
# [ "http://192.168.0.20:5000" ];
#settings.trusted-public-keys =
# [ "amd-server:r5S7vv/3sZ0knhMvpUzRHXFlBHgov2tLhtoKqLXYf28=" ];
registry.nixpkgs.flake = pkgsVersion;
gc = {
automatic = true;

View File

@@ -9,7 +9,6 @@
./hardware-configuration.nix
../../modules/kernel.nix
../../modules/services/ssh.nix
../../modules/services/nix-cache.nix
];
custom = {

View File

@@ -134,13 +134,14 @@
#}
];
# not worth it
# 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";
};
#nix.settings.system-features = ["znver3" "gccarch-znver3" ];
#nixpkgs.hostPlatform = {
# gcc.arch = "znver3";
# gcc.tune = "znver3";
# system = "x86_64-linux";
#};
# fix index
services.xserver.extraConfig = ''