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
2 changes: 2 additions & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ in
nix.extraOptions = ''
experimental-features = nix-command flakes
'';

system.stateVersion = "22.05";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be set from the flake to keep things in sync.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

State version should normally not be changed when upgrading to a newer release from what I understand. It pins stuff like the postgres version so that the new version stays compatlible with the existing state. Setting it in configuration.nix makes sure that it does not get changed unless the user wants so

}
14 changes: 7 additions & 7 deletions flake.lock

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

2 changes: 1 addition & 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 = "nixpkgs/nixos-21.11";
nixpkgs.url = "nixpkgs/nixos-22.05";
flake-utils.url = "github:numtide/flake-utils";

flake-compat = {
Expand Down
1 change: 1 addition & 0 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ with builtins; with lib;
{
magicOrExtension = "MZ";
fixBinary = true;
wrapInterpreterInShell = false;
inherit interpreter preserveArgvZero;
};
};
Expand Down