|
| 1 | +# |
| 2 | +# hp/hp1/configuration.nix |
| 3 | +# |
1 | 4 | { config, pkgs, ... }: |
2 | 5 |
|
3 | 6 | # https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F |
|
60 | 63 | }; |
61 | 64 |
|
62 | 65 | nix = { |
| 66 | + settings = { |
| 67 | + auto-optimise-store = true; |
| 68 | + experimental-features = [ "nix-command" "flakes" ]; |
| 69 | + download-buffer-size = "100000000"; |
| 70 | + builders-use-substitutes = true; |
| 71 | + }; |
| 72 | + # https://nix.dev/tutorials/nixos/distributed-builds-setup.html#set-up-distributed-builds |
| 73 | + distributedBuilds = true; |
| 74 | + buildMachines = [{ |
| 75 | + hostName = "hp4"; |
| 76 | + sshUser = "remotebuild"; |
| 77 | + #sshKey = "/root/.ssh/remotebuild"; |
| 78 | + sshKey = "/home/das/.ssh/remotebuild"; |
| 79 | + system = pkgs.stdenv.hostPlatform.system; |
| 80 | + supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ]; |
| 81 | + }]; |
63 | 82 | gc = { |
64 | 83 | automatic = true; # Enable automatic execution of the task |
65 | 84 | dates = "weekly"; # Schedule the task to run weekly |
66 | 85 | options = "--delete-older-than 10d"; # Specify options for the task: delete files older than 10 days |
67 | 86 | randomizedDelaySec = "14m"; # Introduce a randomized delay of up to 14 minutes before executing the task |
68 | 87 | }; |
69 | | - settings = { |
70 | | - auto-optimise-store = true; |
71 | | - experimental-features = [ "nix-command" "flakes" ]; |
72 | | - download-buffer-size = "100000000"; |
73 | | - }; |
74 | 88 | }; |
75 | 89 |
|
76 | 90 | # find /run/opengl-driver -name "libamfrt64.so.1" |
|
102 | 116 | # Set your time zone. |
103 | 117 | time.timeZone = "America/Los_Angeles"; |
104 | 118 |
|
105 | | - # Enable touchpad support (enabled default in most desktopManager). |
106 | | - # services.xserver.libinput.enable = true; |
107 | | - |
108 | 119 | environment.sessionVariables = { |
109 | 120 | TERM = "xterm-256color"; |
110 | 121 | #MY_VARIABLE = "my-value"; |
|
121 | 132 | # https://nixos.wiki/wiki/SSH_public_key_authentication |
122 | 133 | openssh.authorizedKeys.keys = [ |
123 | 134 | "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGMCFUMSCFJX95eLfm7P9r72NBp9I1FiXwNwJ+x/HGPV das@t" |
| 135 | + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOP3x3r8OZ5ya1GNLqmKOsKDX7oAR+BG9u4EozXvydtC das@hp0" |
124 | 136 | ]; |
125 | 137 | }; |
126 | 138 |
|
| 139 | + # # https://github.com/colemickens/nixcfg/blob/1915d408ea28a5b7279f94df7a982dbf2cf692ef/mixins/ssh.nix#L13C1-L28C7 |
| 140 | + # system.activationScripts.root_ssh_config = { |
| 141 | + # text = '' |
| 142 | + # ( |
| 143 | + # # symlink root ssh config to ours so daemon can use our agent/keys/etc... |
| 144 | + # mkdir -p /root/.ssh |
| 145 | + # ln -sf /home/das/.ssh/config /root/.ssh/config |
| 146 | + # ln -sf /home/das/.ssh/known_hosts /root/.ssh/known_hosts |
| 147 | + # ln -sf /home/das/.ssh/known_hosts /root/.ssh/known_hosts |
| 148 | + # ) |
| 149 | + # ''; |
| 150 | + # deps = [ ]; |
| 151 | + # }; |
| 152 | + |
127 | 153 | # Some programs need SUID wrappers, can be configured further or are |
128 | 154 | # started in user sessions. |
129 | 155 | # programs.mtr.enable = true; |
|
136 | 162 | enableSSHSupport = true; |
137 | 163 | }; |
138 | 164 |
|
| 165 | + |
| 166 | + # https://nixos.wiki/wiki/SSH |
139 | 167 | services.openssh.enable = true; |
140 | 168 |
|
141 | 169 | services.timesyncd.enable = true; |
|
0 commit comments