Skip to content

Commit

Permalink
feat(nix): add wsl host(not config finished yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
huwqchn committed Jan 11, 2025
1 parent 203422b commit 6482d9a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@
inputs.nixpkgs.follows = "nixpkgs";
};

# nixos wsl
nixos-wsl = {
url = "github:nix-community/NixOS-WSL/main";
inputs.nixpkgs.follows = "nixpkgs";
};

nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
4 changes: 4 additions & 0 deletions hosts/nidhogg/__config/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_: {
wsl.enable = true;
system.stateVersion = "24.11";
}
12 changes: 12 additions & 0 deletions hosts/nidhogg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
nixos-wsl,
...
}: {
modules = [
./__config
nixos-wsl.nixosModules.default
home-manager.nixosModules.home-manager
nixos-generators.nixosModules.all-formats
programs-sqlite.nixosModules.programs-sqlite
]
}

0 comments on commit 6482d9a

Please sign in to comment.