| 15 Jun 2024 |
K900 | Now it's officially out | 08:37:12 |
K900 | nzbr (they/it) can you do the thing? | 08:37:20 |
K900 | (I can't releng) | 08:37:29 |
Todd Thompson | yes, but community page still needs to be updated to 24.05 | 08:38:25 |
Todd Thompson | and manual doesn't show using sudo | 08:38:43 |
Todd Thompson | I updated my configuration.nix file to ... but it now starts me as root with "<3>WSL (36034) ERROR: CreateProcessParseCommon:748: getpwnam(nixos) failed 5" | 08:48:39 |
Todd Thompson | { config, lib, pkgs, ... }:
{ imports = [ # include NixOS-WSL modules <nixos-wsl/modules> ];
users.users.todd = { isNormalUser = true; home = "/home/todd"; description = "Todd Thompson"; extraGroups = [ "wheel" "networkmanager" ]; };
wsl.enable = true; wsl.defaultUser = "todd";
This value determines the NixOS release from which the default
settings for stateful data, like file locations and database versions
on your system were taken. It's perfectly fine and recommended to leave
this value at the release version of the first install of this system.
Before changing this value read the documentation for this option
(e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.autoUpgrade.enable = true; system.autoUpgrade.allowReboot = true; }
| 08:48:43 |
K900 | You need to restart WSL entirely if changing the default user name | 08:49:29 |
K900 | Run wsl --shutdown | 08:49:35 |
Todd Thompson | gotcha | 08:49:37 |
K900 | And then wsl again | 08:49:40 |
Todd Thompson | thanks | 08:49:44 |
K900 | Also, do not use allowReboot | 08:49:59 |
K900 | The WSL VM cannot reboot | 08:50:05 |
K900 | Attempting to reboot it leaves it in a weird fucked up state half the time | 08:50:20 |
Todd Thompson | ok, will comment out for now | 08:50:33 |
K900 | The only way to restart it properly is to wsl --shutdown externallyn | 08:50:54 |
K900 | * The only way to restart it properly is to
wsl --shutdown externallynl | 08:51:00 |
K900 | * The only way to restart it properly is to
wsl --shutdown externally | 08:51:04 |
K900 | Because that will also clear the state tracking on the Windows side | 08:51:20 |
K900 | And the "system" distro | 08:51:34 |
Todd Thompson | everything seems to be working now, thanks | 08:55:01 |
Todd Thompson | my goal is to use nixos-wsl for local development and then nixos or ubuntu+nix-shell for VPS for prototype/staging. is the "nixos" way to do things to always use shell envs for each app/service or should I globally install some devops tools as well | 08:59:30 |
Todd Thompson | I'd like to follow the ethos of nixos as much as possible but not sure about the 3 different use cases | 09:00:47 |
K900 | Generally yes, do one shell per project | 09:21:01 |
Todd Thompson | In reply to @k900:0upti.me Generally yes, do one shell per project thanks | 09:30:40 |
Todd Thompson | I'm following https://zero-to-nix.com/ hope it's a good starting place | 09:31:39 |
Arson Copperflame | In reply to@k900:0upti.me nzbr (they/it) can you do the thing? I had been gone for the last week, sorry. I'll see if there's anything missing before that | 16:23:10 |
Arson Copperflame | If I haven't missed anything urgent, we can probably have a new release once this one is merged: https://github.com/nix-community/NixOS-WSL/pull/496 | 17:36:28 |
| 16 Jun 2024 |
K900 | In reply to @nzbr:nzbr.de If I haven't missed anything urgent, we can probably have a new release once this one is merged: https://github.com/nix-community/NixOS-WSL/pull/496 Does that actually happen? | 05:36:05 |