summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock38
-rw-r--r--flake.nix4
-rw-r--r--hosts/wsl/default.nix18
3 files changed, 60 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
index 780d410..b240156 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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",
diff --git a/flake.nix b/flake.nix
index 2a94447..17794d5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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
+ ];
+}