Hi!
I have a file that has a command that requires a string input of my username.
I have a folder containing all config files used for creating and managing different home-manager users.
how could I use this folder to avoid putting in my specific username in the command? I’m trying to stay anonymous on github, so I want users only referenced in one location. (also to make it a general system anyone can use.)
the command in question: services.getty.autologinUser = "username";
My default solution for avoiding identity-linking via config repos is to use VCS-ignored files with the relevant data, which I then import. Not sure whether flakes like either of the two solutions (I don’t use flakes); I guess you could have an extra input to the flake that is not published?
You can also go the dependency inversion route and make your project just a set of modules, with a custom custom.mainuser option which you then use anywhere you need a handle on the username.
Your actual configuration.nix on your real machine would then just look something like: