diff --git a/flake.nix b/flake.nix index e194ffd7..768a31b0 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/hosts/nidhogg/__config/default.nix b/hosts/nidhogg/__config/default.nix new file mode 100644 index 00000000..6f9c276c --- /dev/null +++ b/hosts/nidhogg/__config/default.nix @@ -0,0 +1,4 @@ +_: { + wsl.enable = true; + system.stateVersion = "24.11"; +} diff --git a/hosts/nidhogg/default.nix b/hosts/nidhogg/default.nix new file mode 100644 index 00000000..377abb93 --- /dev/null +++ b/hosts/nidhogg/default.nix @@ -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 + ] +}