Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "NixOS WSL";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";

flake-compat = {
Expand Down Expand Up @@ -32,6 +32,12 @@
wsl.enable = true;
wsl.nativeSystemd = lib.mkIf legacy false;
programs.bash.loginShellInit = "nixos-wsl-welcome";

# When the config is built from a flake, the NIX_PATH entry of nixpkgs is set to its flake version.
# Per default the resulting systems aren't flake-enabled, so rebuilds would fail.
# Note: This does not affect the module being imported into your own flake.
nixpkgs.flake.source = lib.mkForce null;

systemd.tmpfiles.rules =
let
channels = pkgs.runCommand "default-channels" { } ''
Expand Down