shortwavesurfer2009 on Nostr: Well, that was great fun. I had the really bright, intelligent idea that I'm going to ...
Well, that was great fun.
I had the really bright, intelligent idea that I'm going to switch my username on my #NixOS
Well, my dumbass edits the configuration.nix and changes the Define User section from OldUsername to NewUsername and rebuilds and reboots the system without setting a fucking password.
So to move all of my data from the old username to the new username, I had to log in as the root user, set a password for my new user, delete the new user's home folder, and then "mv /home/OldUsername /home/NewUsername" followed by "chown -r NewUsername:users /home/NewUsername" to give the new username, read and write permissions over that directory properly.
Published at
2026-10-19 01:19:22 UTCEvent JSON
{
"id": "000052a59a914dfb7e236a16e8e1e014361d7ca51d852f28b5c8f71590241b36",
"pubkey": "465eb13404d7219cd91c2b4a8a7e308ad4e09bc1298dc08c5eec852e9bf5da09",
"created_at": 1792372762,
"kind": 1,
"tags": [
[
"t",
"nixos"
],
[
"client",
"monostr",
"31990:1601fcacdf227ddda10e33e71917930b49be436b43bdd030b799948a9f274ed3:monostr",
"wss://relay.monostr.com"
],
[
"nonce",
"128640",
"16"
]
],
"content": "Well, that was great fun.\n\nI had the really bright, intelligent idea that I'm going to switch my username on my #NixOS\n\nWell, my dumbass edits the configuration.nix and changes the Define User section from OldUsername to NewUsername and rebuilds and reboots the system without setting a fucking password.\n\nSo to move all of my data from the old username to the new username, I had to log in as the root user, set a password for my new user, delete the new user's home folder, and then \"mv /home/OldUsername /home/NewUsername\" followed by \"chown -r NewUsername:users /home/NewUsername\" to give the new username, read and write permissions over that directory properly.",
"sig": "9bac52a16749fe9e37bdcb2bd6bc5cfbe357120a03ec1fc890e6873510b5f9a974b6231b1cb3d0fa1dff8ece99436340e373ec2466cab1375babb9ee62832d8e"
}