-
Currently this usses myself as a global and only user. Can machine setips also take a user name (possibly optional) my user name differs on different machines. In some ways this is the generalisation of issue #19 for none homeManager configs. I think this means mkLinuxSystem and mkMacosSystem have an optional parameter user that sets myself. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I don't think this requires changing the |
Beta Was this translation helpful? Give feedback.
-
Part of the issue is that I am trying to learn nix and I need an actual example of multiple users. I find the nix language pretty impenetrable and I have used may languages. (I would use guix as it an existing language except that I need to use macos) I look at your config https://github.com/srid/nixos-config/blob/master/users/default.nix and see it can only have one user which you set by setting myself = "srid"; and the myself is how you get the username in all of the other nix files. So I need to set myself differently for different machines - how do I do that? |
Beta Was this translation helpful? Give feedback.
I don't think this requires changing the
mkLinuxSystem
API. I think there are other ways to achieve what you want, for example, you can create a flake-parts module, as I've done here, or you can use_module.args
at top-level to pass the user name.