diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-24 10:39:35 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-24 10:39:35 -0400 |
commit | f9ecdf8226d26c311ac663c1a383538db48e6078 (patch) | |
tree | 8f7bca7e4535f33352a5ec28ea6a171b0d1d1718 | |
parent | add minimal config option (diff) | |
download | dotfiles-nix-f9ecdf8226d26c311ac663c1a383538db48e6078.tar.gz dotfiles-nix-f9ecdf8226d26c311ac663c1a383538db48e6078.tar.bz2 dotfiles-nix-f9ecdf8226d26c311ac663c1a383538db48e6078.zip |
add wsl host
-rw-r--r-- | flake.lock | 38 | ||||
-rw-r--r-- | flake.nix | 4 | ||||
-rw-r--r-- | hosts/wsl/default.nix | 18 |
3 files changed, 60 insertions, 0 deletions
@@ -97,6 +97,22 @@ "type": "github" } }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems_2" @@ -487,6 +503,27 @@ "type": "github" } }, + "nixos-wsl": { + "inputs": { + "flake-compat": "flake-compat_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1749574455, + "narHash": "sha256-fm2/8KPOYvvIAnNVtjDlTt/My00lIbZQ+LMrfQIWVzs=", + "owner": "nix-community", + "repo": "nixos-wsl", + "rev": "917af390377c573932d84b5e31dd9f2c1b5c0f09", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixos-wsl", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1750506804, @@ -546,6 +583,7 @@ "hy3": "hy3", "hyprland": "hyprland", "hyprland-plugins": "hyprland-plugins", + "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs", "sops-nix": "sops-nix", "talc": "talc", @@ -31,6 +31,9 @@ # apple-fonts apple-fonts.url = "github:Lyndeno/apple-fonts.nix"; apple-fonts.inputs.nixpkgs.follows = "nixpkgs"; + # nixos-wsl + nixos-wsl.url = "github:nix-community/nixos-wsl"; + nixos-wsl.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = {nixpkgs, ...} @ inputs: let @@ -63,6 +66,7 @@ shinji = buildSystem ./hosts/shinji "x86_64-linux"; kaworu = buildSystem ./hosts/kaworu "x86_64-linux"; thinkpad = buildSystem ./hosts/thinkpad "x86_64-linux"; + wsl = buildSystem ./hosts/wsl "x86_64-linux"; }; homeConfigurations = { diff --git a/hosts/wsl/default.nix b/hosts/wsl/default.nix new file mode 100644 index 0000000..9ccfc31 --- /dev/null +++ b/hosts/wsl/default.nix @@ -0,0 +1,18 @@ +# WSL +# System configuration for any wsl instance +{config, pkgs, inputs, ...}: { + imports = [ + inputs.nixos-wsl.nixosModules.default + ]; + + # options + hostName = "wsl"; + minimal = true; + wsl.enable = true; + wsl.defaultUser = config.user; + + # packages + environment.systemPackages = with pkgs; [ + sphinx + ]; +} |