Commit 660ef164867e
Changed files (2)
systems
hosts
systems/hosts/okinawa.nix
@@ -0,0 +1,30 @@
+{ lib, pkgs, config, modulesPath, ... }:
+
+with lib;
+{
+ imports = [
+ "${modulesPath}/profiles/minimal.nix"
+ ];
+
+ wsl = {
+ enable = true;
+ automountPath = "/mnt";
+ defaultUser = "nixos";
+ startMenuLaunchers = true;
+
+ # Enable integration with Docker Desktop (needs to be installed)
+ # docker.enable = true;
+ };
+
+ environment.systemPackages = with pkgs; [
+ docker-client
+ git
+ vim
+ ];
+
+ # Enable nix flakes
+ nix.package = pkgs.nixFlakes;
+ nix.extraOptions = ''
+ experimental-features = nix-command flakes
+ '';
+}
flake.nix
@@ -42,6 +42,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};
+ # WSL
+ wsl = { type = "github"; owner = "nix-community"; repo = "NixOS-WSL"; inputs.nixpkgs.follows = "nixpkgs"; }
+
# Channels
# FIXME: is it needed or should I just alias nixos-unstable instead
nixpkgs = { type = "github"; owner = "NixOS"; repo = "nixpkgs"; ref = "nixos-unstable"; };
@@ -60,6 +63,7 @@
, nur
, sops-nix
, envfs
+ , nixos-wsl
, ...
} @ inputs:
let
@@ -105,7 +109,10 @@
};
# WSL setup
okinawa = {
- modules = [ ./systems/hosts/okinawa.nix ];
+ modules = [
+ nixos-wsl.nixosModules.wsl
+ ./systems/hosts/okinawa.nix
+ ];
};
# Servers
shikoku = {