| 8 Mar 2024 |
K900 | The annoying part is managing .wslconfig | 14:27:05 |
Sandro 🐧 | Copy it to /mnt/c/ on activation or so | 15:00:22 |
greg | How about putting a VPN directly on your WSL and connecting through that? 🤔 | 16:04:18 |
K900 | Connecting to what? | 16:05:19 |
greg | To an ssh server in the wsl | 16:05:38 |
| 9 Mar 2024 |
| Qyriad joined the room. | 00:36:57 |
| mj joined the room. | 03:36:26 |
mj | guys im here n00bin about cos I couldn't figure out what's going on with the current state of things in 23.11 | 04:14:21 |
mj | Prior, I built this out in a full NixOS host, https://github.com/jee-mj/dotFiles
It worked fine mostly, besides supportfor my PHP database server with phpmyadmin, which I thought might be better addressed in the actual environment it's supposed to be running on. Which is this. | 04:18:45 |
mj | I'm going to continue with this video but I imported the outdated packages into the current one, which saw me compiling 3000 items, which I don't know what that's done to my system now:
nixos@nixos ~ cat /etc/nixos/configuration.nix 04:12:21
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
# https://github.com/nix-community/NixOS-WSL
{ config, lib, pkgs, modulesPath, ... }:
with lib;
let
nixos-wsl = import ./NixOS-WSL;
in
{
imports = [
# include NixOS-WSL modules
"${modulesPath}/profiles/minimal.nix"
nixos-wsl.nixosModules.wsl
];
wsl = {
enable = true;
automountPath = "/mnt";
defaultUser = "nixos";
startMenuLaunchers = true;
# docker.enable = true;
};
# flakes
nix = {
package = pkgs.nixFlakes;
settings.experimental-features = [ "nix-command" "flakes" ];
};
environment.systemPackages = with pkgs; [
file
fish
git
neovim
nodejs
wget
];
programs = {
fzf = {
keybindings = true;
fuzzyCompletion = true;
};
fish.enable = true;
};
users.users.nixos.shell = pkgs.fish;
users.users.root.shell = pkgs.fish;
# 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 = "23.11"; # Did you read the comment?
| 04:20:40 |
mj | * Prior, I built this out in a full NixOS host, It worked fine mostly, besides supportfor my PHP database server with phpmyadmin, which I thought might be better addressed in the actual environment it's supposed to be running on. Which is this. | 04:21:00 |
| jucax joined the room. | 05:38:08 |
K900 | Please just use the official tarball | 06:50:41 |
K900 | It's set up correctly | 06:50:44 |
mj | i did thats what I started with | 06:53:13 |
K900 | Then what is happening here? | 06:54:13 |
K900 | with lib;
let
nixos-wsl = import ./NixOS-WSL;
in
{
imports = [
# include NixOS-WSL modules
"${modulesPath}/profiles/minimal.nix"
nixos-wsl.nixosModules.wsl
];
| 06:54:15 |
mj | that was me trying the old latest fixed tarball configuration file from that video | 06:57:37 |
mj | that was actually great timing thank you so much, it fixed an issue that came from merging my github conf with the wsl hardware conf | 06:58:06 |
mj | In reply to @k900:0upti.me
with lib;
let
nixos-wsl = import ./NixOS-WSL;
in
{
imports = [
# include NixOS-WSL modules
"${modulesPath}/profiles/minimal.nix"
nixos-wsl.nixosModules.wsl
];
this looks like an excellent way to import a custom module | 06:58:49 |
K900 | Yeah I have no idea what's going on there, and you shouldn't need a hardware-configuration.nix at all | 06:59:08 |
mj | then it'll get built by nixos | 06:59:12 |
K900 | Just use the tarball and start with the default config in the tarball | 06:59:27 |
mj | I'm just getting this error mainly
nixos@URIEL-WSL /m/c/U/mj code . 17:59:20
/home/nixos/.vscode-server/bin/1e790d77f81672c49be070e04474901747115651/bin/remote-cli/code: line 12: /home/nixos/.vscode-server/bin/1e790d77f81672c49be070e04474901747115651/node: cannot execute: required file not found | 06:59:38 |
K900 | That's an unrelated issue which has to do with how NixOS work | 07:00:06 |
K900 | * That's an unrelated issue which has to do with how NixOS works | 07:00:07 |
mj | I have this configuration file now
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: /etc/nixos/configuration.nix
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ { config, lib, pkgs, ... }:
2 │
3 │ {
4 │ imports = [
5 │
6 │ /etc/nixos/.nix/system.nix
7 │ /etc/nixos/.nix/environment.nix
8 │ <nixos-wsl/modules>
9 │ ];
10 │
11 │ wsl = {
12 │ enable = true;
13 │ defaultUser = "nixos";
14 │ startMenuLaunchers = true;
15 │
16 │ # docker.enable = true;
17 │ };
18 │
19 │ system.stateVersion = "23.11";
20 │ }
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
| 07:00:23 |
K900 | OK yes that looks a lot more normal | 07:00:49 |
mj | is there documentation of the options anywhere?" | 07:00:53 |
mj | e.g. wsl.automountPath | 07:01:12 |