svanderburg / dysnomia

Dysnomia: A tool for deploying mutable components
MIT License
80 stars 9 forks source link

Use of localSystem #5

Open xaverdh opened 3 years ago

xaverdh commented 3 years ago

The dysnomia module (both the one from this repo, and the one in upstream nixpkgs, which is broken currently though) uses config.nixpkgs.localSystem which is probably not a good idea (see https://github.com/NixOS/nixpkgs/issues/49765). What is the value of localSystem used for anyway?

svanderburg commented 3 years ago

It's not my idea and I don't like it very much either, but localSystem is a new convention introduced some time ago by the cross-compiling infrastructure to make a distinction between the system that compiles and the intended target system.

svanderburg commented 3 years ago

Btw, it still seems to work in the latest stable release (20.09). I typically only directly aim for latest stable releases, not the master Nixpkgs, although I try to regularly sync in a while. (Main reason why I don't do it: master branches tend to change so much with incompatible changes that it's very hard to keep up)

I'll try and see if I can get the module in the NixOS repo fixed.

svanderburg commented 3 years ago

config.nixpkgs.localSystem is used by Dysnomia to publish the target machine configuration to tell clients for which system architecture packages should be built for. It should correspond to the system architecture of the NixOS deployment.