grace/dots
dotfiles/nix configs
git clone https://git.gae.moe/grace/dots
08de973
main
1{ 2host , 3inputs , 4lib , 5pkgs , 6... 7} : 8{ 9nixpkgs . hostPlatform = host . system ; 10nixpkgs . config . allowUnfree = true ; 11nix . package = pkgs . lixPackageSets . stable . lix ; 12nix . nixPath = [ 13"nixpkgs= ${ inputs . nixpkgs } " 14"home-manager= ${ inputs . home-manager } " 15"darwin= ${ inputs . darwin } " 16] ; 17 18nix . distributedBuilds = true ; 19nix . buildMachines = lib . optionals ( host . name != "dijkstra" ) [ 20{ 21hostName = "dijkstra.i.gae.moe" ; 22sshUser = "builder" ; 23sshKey = "/root/.ssh/id_ed25519" ; 24protocol = "ssh-ng" ; 25systems = [ "x86_64-linux" ] ; 26maxJobs = 8 ; 27speedFactor = 4 ; 28supportedFeatures = [ 29"kvm" 30"big-parallel" 31"nixos-test" 32"benchmark" 33] ; 34} 35] ; 36nix . settings . builders-use-substitutes = true ; 37nix . gc = { 38automatic = true ; 39options = "--delete-older-than 30d" ; 40} 41// lib . optionalAttrs ( host . type == "nixos" ) { 42dates = "weekly" ; 43randomizedDelaySec = "1h" ; 44} 45// lib . optionalAttrs ( host . type == "darwin" ) { 46interval = [ 47{ 48Weekday = 0 ; 49Hour = 3 ; 50Minute = 15 ; 51} 52] ; 53} ; 54programs . ssh . knownHosts . dijkstra = { 55hostNames = [ 56"dijkstra.i.gae.moe" 57"d.i.gae.moe" 58] ; 59publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEAQ463pWxkNc6IxhKMxKaQmvswnkO4UytR0v38ZL0v0" ; 60} ; 61programs . ssh . knownHosts . knuth = { 62hostNames = [ 63"knuth.i.gae.moe" 64"k.i.gae.moe" 65] ; 66publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ9mXbG9oj+uGSYVwxR9eedbZbdDJ6N+vnaOJfT6dkK0" ; 67} ; 68programs . ssh . knownHosts . vulcan = { 69hostNames = [ "vulcan.moe" ] ; 70publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbrncs13r5yxwPZreDwgRJg0t9ngRSw9rCnYl9cN8fk" ; 71} ; 72 73security . sudo . extraConfig = lib . optionalString ( host . type == "nixos" ) '' 74Defaults env_keep += "XDG_CONFIG_HOME EDITOR VISUAL JJ_CONFIG" 75'' ; 76}