Skip to content

Commit

Permalink
nixos/profiles: enable bcachefs for new-kernel profile
Browse files Browse the repository at this point in the history
  • Loading branch information
MakiseKurisu committed Jan 23, 2025
1 parent eb06fb7 commit 52de04c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
- A new `pkgs.mattermost.buildPlugin` function has been added, which allows plugins to be built from source, including webapp frontends with a supported package-lock.json. See the Mattermost NixOS test and [manual](https://nixos.org/manual/nixpkgs/unstable/#sec-mattermost-plugins-build) for an example.
- Note that the Mattermost module will create an account _without_ a well-known UID if the username differs from the default (`mattermost`). If you used Mattermost with a nonstandard username, you may want to review the module changes before upgrading.

- `bcachefs` is now enabled in the installation media with a suitable kernel.

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

## New Modules {#sec-release-25.05-new-modules}
Expand Down
7 changes: 7 additions & 0 deletions nixos/modules/profiles/new-kernel.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
lib,
pkgs,
...
}:

{
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.supportedFilesystems = [ "bcachefs" ];
# Might be required as a workaround for bcachefs bug
# https://github.com/NixOS/nixpkgs/issues/32279#issuecomment-1093682970
boot.postBootCommands = ''
${lib.getExe pkgs.keyutils "keyctl"} link @u @s
'';
}

0 comments on commit 52de04c

Please sign in to comment.