I have this flake.nix who I have to keep changing user variable between My two machines, But I have files .nix in common using the variable. flake.nix · GitHub
Have any way to pass this variable as parameter on the nixos-rebuild to change dynamically ?
Im using this file in common home.nix · GitHub, this applications have to be in both machines, so I figure I dont need repeat in the host files, right ? Im new in nix language, can you give me a example on genAttrs? I read the files on github but I dont undestood
Im hardcoding the user, but would be better if I could pass a parameter to set the user, because If I choose share this configuration with friends they could just choose which profile they prefer. Ps.: The third machine its, me testing a virtual machine configuration. The current flake configuration works flawless just missing this user issue