From c74ad8118d6aca9b0d3be58f0bf3f6b7c7b76560 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 24 Nov 2023 10:11:26 +0800 Subject: [PATCH] config: add NixOS-WSL for test WSL configuration --- flake.lock | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 5 ++++ 2 files changed, 77 insertions(+) diff --git a/flake.lock b/flake.lock index 4eb8e087..2975487c 100644 --- a/flake.lock +++ b/flake.lock @@ -202,6 +202,22 @@ "type": "github" } }, + "flake-compat_4": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -331,6 +347,24 @@ "type": "github" } }, + "flake-utils_6": { + "inputs": { + "systems": "systems_6" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "guix-overlay": { "inputs": { "nixpkgs": "nixpkgs" @@ -583,6 +617,28 @@ "type": "github" } }, + "nixos-wsl": { + "inputs": { + "flake-compat": "flake-compat_4", + "flake-utils": "flake-utils_6", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1700665566, + "narHash": "sha256-+AU2AdpA2eHlVwH3LL1qCWCTJyOJwCw/7pwampP3Jy8=", + "owner": "nix-community", + "repo": "NixOS-WSL", + "rev": "a9287f7191467138d6203ea44b3a0b9c745cb145", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NixOS-WSL", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1665763903, @@ -695,6 +751,7 @@ "nixos-stable": "nixos-stable", "nixos-unstable": "nixos-unstable", "nixos-unstable-small": "nixos-unstable-small", + "nixos-wsl": "nixos-wsl", "nixpkgs": [ "nixos-unstable" ], @@ -823,6 +880,21 @@ "type": "github" } }, + "systems_6": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "utils": { "locked": { "lastModified": 1667395993, diff --git a/flake.nix b/flake.nix index 0859b343..e3b3532f 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,10 @@ sops-nix.url = "github:Mic92/sops-nix"; sops-nix.inputs.nixpkgs.follows = "nixpkgs"; + # NixOS in Windows. + nixos-wsl.url = "github:nix-community/NixOS-WSL"; + nixos-wsl.inputs.nixpkgs.follows = "nixpkgs"; + # Easy access to development environments. devshell.url = "github:numtide/devshell"; devshell.inputs.nixpkgs.follows = "nixpkgs"; @@ -159,6 +163,7 @@ inputs.guix-overlay.nixosModules.guix inputs.disko.nixosModules.disko inputs.nix-index-database.nixosModules.nix-index + inputs.nixos-wsl.nixosModules.default ]; # Find Nix files with these! Even if nix-index is already enabled, it