{config, nixpkgs, ...}: { nix = { registry = { nixpkgs.flake = nixpkgs; n.flake = nixpkgs; }; channel.enable = false; distributedBuilds = true; buildMachines = [ { hostName = "server1.vhack.eu"; protocol = "ssh-ng"; system = "x86_64-linux"; supportedFeatures = ["big-parallel"]; } ]; gc = { automatic = true; dates = "daily"; options = "--delete-older-than 3"; }; settings = { auto-optimise-store = true; experimental-features = ["nix-command" "flakes"]; trusted-substituters = [ "https://cache.garnix.io" ]; trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; }; }; home-manager.users.root.home = { username = "root"; homeDirectory = "/root"; stateVersion = "23.05"; file.".ssh/config" = { text = '' Host server1.vhack.eu IdentitiesOnly yes IdentityFIle ${config.age.secrets.nixremote.path} User nixremote ''; }; }; }