diff --git a/flake.lock b/flake.lock index 6a1d073..b4f58f8 100644 --- a/flake.lock +++ b/flake.lock @@ -169,6 +169,22 @@ "url": "https://github.com/NixOS/nixpkgs/archive/cc2f28000298e1269cea6612cd06ec9979dd5d7f.tar.gz" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1732014248, + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1732350895, @@ -190,7 +206,8 @@ "flake-parts": "flake-parts", "lix-module": "lix-module", "nixos-wsl": "nixos-wsl", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_2", + "nixpkgs-unstable": "nixpkgs-unstable" } }, "systems": { diff --git a/flake.nix b/flake.nix index 6db3fa9..856d6fc 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { flake-parts.url = "github:hercules-ci/flake-parts"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixos-wsl.url = "github:nix-community/NixOS-WSL/main"; lix-module = { url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz"; diff --git a/nixos/machines/wsl/configuration.nix b/nixos/machines/wsl/configuration.nix index 91bc118..3c6e9b0 100644 --- a/nixos/machines/wsl/configuration.nix +++ b/nixos/machines/wsl/configuration.nix @@ -27,9 +27,10 @@ { imports = [ - # include NixOS-WSL modules + # WSL support inputs.nixos-wsl.nixosModules.default - lix-module.nixosModules.default + # Our modules + (import ../../modules/base.nix {inherit inputs;}) ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/nixos/modules/base.nix b/nixos/modules/base.nix new file mode 100644 index 0000000..e7b6533 --- /dev/null +++ b/nixos/modules/base.nix @@ -0,0 +1,20 @@ +{ inputs }: +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ + inputs.lix-module.nixosModules.default + ]; + + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + + system.stateVersion = "24.11"; +}