!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

340 Members
https://github.com/nix-community/NixOS-WSL57 Servers

Load older messages


SenderMessageTime
2 Mar 2024
@stablejoy:matrix.org@stablejoy:matrix.org joined the room.11:30:13
@stablejoy:matrix.org@stablejoy:matrix.org set a profile picture.11:44:15
@redblueflame:matrix.orgknownasred joined the room.18:53:06
6 Mar 2024
@ktemkin:katesiria.org@ktemkin:katesiria.org joined the room.22:26:53
8 Mar 2024
@simonyde:matrix.orgSimon Ydedo I just need to enable the openssl services of NixOS to ssh into the WSL2 instance, or do I need some setting on the windows side?14:10:33
@k900:0upti.meK900You need to enable openssh on the NixOS side AND you need to allow port 22 through the firewall on the Windows side14:11:56
@simonyde:matrix.orgSimon Yde is the easiest to use netsh from powershell? or is there an even easier way? 14:13:19
@k900:0upti.meK900There's a powershell command for it14:14:27
@k900:0upti.meK900That I do not remember14:14:30
@sandro:supersandro.deSandro 🐧FYI https://github.com/nix-community/NixOS-WSL/discussions/110#discussioncomment-872067714:21:52
@k900:0upti.meK900Yeah it's pretty doable14:27:00
@k900:0upti.meK900The annoying part is managing .wslconfig14:27:05
@sandro:supersandro.deSandro 🐧Copy it to /mnt/c/ on activation or so15:00:22
@greg:thehellings.comgregHow about putting a VPN directly on your WSL and connecting through that? 🤔16:04:18
@k900:0upti.meK900Connecting to what?16:05:19
@greg:thehellings.comgregTo an ssh server in the wsl16:05:38
9 Mar 2024
@qyriad:katesiria.orgQyriad joined the room.00:36:57
@jee_mj:matrix.orgmj joined the room.03:36:26
@jee_mj:matrix.orgmjguys im here n00bin about cos I couldn't figure out what's going on with the current state of things in 23.1104:14:21
@jee_mj:matrix.orgmjPrior, 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
@jee_mj:matrix.orgmj

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
@jee_mj:matrix.orgmj * 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:matrix.orgjucax joined the room.05:38:08
@k900:0upti.meK900Please just use the official tarball06:50:41
@k900:0upti.meK900It's set up correctly06:50:44
@jee_mj:matrix.orgmji did thats what I started with06:53:13
@k900:0upti.meK900Then what is happening here?06:54:13
@k900:0upti.meK900
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
@jee_mj:matrix.orgmjthat was me trying the old latest fixed tarball configuration file from that video06:57:37
@jee_mj:matrix.orgmjthat was actually great timing thank you so much, it fixed an issue that came from merging my github conf with the wsl hardware conf06:58:06

Show newer messages


Back to Room ListRoom Version: 9