samueldr changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/
lordcirth has joined #nixops
<lordcirth> I want to have a file defining my standard machine, then have other machines import that and add changes. However, if I just do "hostname = defaults // { stuff; };" then it does a shallow merge and loses a lot of the config. What is the correct way to do this?
<gchristensen> imports = [ ./files.nix ./to.nix ./import.nix ];
<lordcirth> Don't I still have to merge, if I do that?
<lordcirth> I found recursiveUpdate as well, seems to do what I want
<gchristensen> no
<gchristensen> you don't need to use recursiveUpdate or to merge at all
<lordcirth> The import order takes care of it?
<gchristensen> yes
Ariakenom has joined #nixops
Ariakenom has quit [Quit: WeeChat 2.6]