{ host, inputs, lib, pkgs, ... }: { nixpkgs.hostPlatform = host.system; nixpkgs.config.allowUnfree = true; nix.package = pkgs.lixPackageSets.stable.lix; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" "home-manager=${inputs.home-manager}" "darwin=${inputs.darwin}" ]; nix.distributedBuilds = true; nix.buildMachines = lib.optionals (host.name != "dijkstra") [ { hostName = "dijkstra.i.gae.moe"; sshUser = "builder"; sshKey = "/root/.ssh/id_ed25519"; protocol = "ssh-ng"; systems = [ "x86_64-linux" ]; maxJobs = 8; speedFactor = 4; supportedFeatures = [ "kvm" "big-parallel" "nixos-test" "benchmark" ]; } ]; nix.settings.builders-use-substitutes = true; nix.gc = { automatic = true; options = "--delete-older-than 30d"; } // lib.optionalAttrs (host.type == "nixos") { dates = "weekly"; randomizedDelaySec = "1h"; } // lib.optionalAttrs (host.type == "darwin") { interval = [ { Weekday = 0; Hour = 3; Minute = 15; } ]; }; programs.ssh.knownHosts.dijkstra = { hostNames = [ "dijkstra.i.gae.moe" "d.i.gae.moe" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEAQ463pWxkNc6IxhKMxKaQmvswnkO4UytR0v38ZL0v0"; }; programs.ssh.knownHosts.knuth = { hostNames = [ "knuth.i.gae.moe" "k.i.gae.moe" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ9mXbG9oj+uGSYVwxR9eedbZbdDJ6N+vnaOJfT6dkK0"; }; programs.ssh.knownHosts.vulcan = { hostNames = [ "vulcan.moe" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbrncs13r5yxwPZreDwgRJg0t9ngRSw9rCnYl9cN8fk"; }; security.sudo.extraConfig = lib.optionalString (host.type == "nixos") '' Defaults env_keep += "XDG_CONFIG_HOME EDITOR VISUAL JJ_CONFIG" ''; }