Skip to content
Snippets Groups Projects
  1. May 02, 2022
  2. Apr 29, 2022
  3. Apr 15, 2022
  4. Feb 27, 2022
  5. Feb 25, 2022
  6. Feb 24, 2022
  7. Feb 21, 2022
  8. Feb 11, 2022
  9. Feb 10, 2022
    • Jean-Paul Calderone's avatar
      Read the VPN server IP address from the monitoring node config · 0eee7f76
      Jean-Paul Calderone authored
      morph offers an auto-passed `nodes` parameter from which we can read all of
      the nodes in the morph "network".  We can dig around in this to find the
      monitoring node and then read its configured IP address.
      
      It may be worth noting that this address appears in at least two places in the
      configuration.  It appears in our "input" configuration which grid.nix
      defines.  This change reads it from there.  We also have a NixOS module
      `nixos/modules/monitoring/vpn/server.nix` which reads this "input" and uses it
      to configure `networking.wireguard.interfaces.monitoringvpn`.  This is fed
      onwards to <nixos> to generate actual system configuration.
      
      It seems better to use the former than the latter because we have more direct
      control over it and if we consider the whole configuration system a function
      then it is more like an argument we are supplying rather than an obscure
      implementation detail.
      0eee7f76
    • Florian Sesser's avatar
      Revert "Also turn on auto-optimize nix store on local dev VMs" · c44d7c2f
      Florian Sesser authored
      This reverts commit 3113a3e6.
      
      Thinking a second time:  While the staging grid is deployed to
      by an automaton anyway and it taking a minute longer won't bother
      us, 20 % space savings is probably not worth slowing down
      development interactivity.
      c44d7c2f
    • Florian Sesser's avatar
    • Florian Sesser's avatar
  10. Feb 07, 2022
    • Tom Prince's avatar
      Add a derivation that builds all three grids. · 52255d18
      Tom Prince authored
      This is the derivation I use when running `nix store diff-closures` for the
      weekly nixpkgs update.
      
      The derivation also includes some attributes that are useful for exploring the
      various grid configurations in the nix repl.
      52255d18
  11. Feb 03, 2022
  12. Feb 02, 2022
  13. Jan 31, 2022
  14. Jan 24, 2022
    • Tom Prince's avatar
      Specify ssh-keys as list of strings, rather than having a single string. · 61bde2d4
      Tom Prince authored
      Older versions of nixpkgs allowed you to specify multiple keys by having
      newline separated keys in your string. However, this worked essentially by
      accident, and is now explictly disallowed.
      
      I noticed this because I had configured multiple keys for the local grid.  This
      isn't currently impacting my ability to work, but it seems like a worthwhile
      improvement anyway. This will be necessary (for example) if/when multiple people are
      given root access to our storage nodes.
      61bde2d4
  15. Jan 21, 2022
  16. Jan 19, 2022
  17. Jan 18, 2022
  18. Jan 17, 2022
    • Tom Prince's avatar
      Speed up evaluation of grids by evaluating custom packages once. · 56372538
      Tom Prince authored
      The current code evaluates our custom packages once for each node, which adds
      signifcant amount of time to evaluate a grid. We can reduce this, by adding the
      custom package set as an attribute to the nixpkgs set we pass to morph.
      
      This doesn't change how we refer to those packages, as we continue to expose the
      custom package set as a module attribute.
      
      These are the times to evaluate all three grids (on a partially loaded system),
      when there was nothing new to build:
      
      ```
      before:
      real	2m27.837s
      user	3m35.528s
      sys	0m3.722s
      
      after:
      real	1m12.748s
      user	1m34.047s
      sys	0m3.346s
      ```
      56372538
  19. Jan 13, 2022
  20. Jan 11, 2022
  21. Jan 07, 2022
  22. Jan 04, 2022
Loading