Skip to content
Snippets Groups Projects
  1. Feb 11, 2022
  2. 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
  3. Feb 03, 2022
  4. Feb 02, 2022
  5. Jan 31, 2022
  6. Jan 21, 2022
  7. Jan 19, 2022
  8. Jan 18, 2022
  9. 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
  10. Jan 13, 2022
  11. Jan 11, 2022
  12. Jan 07, 2022
  13. Jan 04, 2022
  14. Jan 03, 2022
  15. Dec 21, 2021
  16. Dec 20, 2021
  17. Nov 10, 2021
  18. Nov 03, 2021
Loading