diff options
| -rw-r--r-- | hosts/sif/hw.nix | 3 | ||||
| -rw-r--r-- | system-profiles/bcachefs.nix | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix index 81349dda..e567c37d 100644 --- a/hosts/sif/hw.nix +++ b/hosts/sif/hw.nix | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | { options = [ | 11 | { options = [ |
| 12 | "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm0" | 12 | "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm0" |
| 13 | "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm1" | 13 | "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm1" |
| 14 | "casefold_disabled" | ||
| 15 | ]; | 14 | ]; |
| 16 | device = "/dev/disk/by-uuid/fe7bdaac-d2f3-4535-a635-e2fb97ef3802"; | 15 | device = "/dev/disk/by-uuid/fe7bdaac-d2f3-4535-a635-e2fb97ef3802"; |
| 17 | fsType = "bcachefs"; | 16 | fsType = "bcachefs"; |
| @@ -26,7 +25,7 @@ | |||
| 26 | # system.etc.overlay.enable = false; | 25 | # system.etc.overlay.enable = false; |
| 27 | 26 | ||
| 28 | boot.initrd.systemd.packages = [ | 27 | boot.initrd.systemd.packages = [ |
| 29 | (pkgs.writeTextDir "/etc/systemd/system/-sysroot-.bcachefs.mount.d/block_scan.conf" '' | 28 | (pkgs.writeTextDir "/etc/systemd/system/sysroot-.bcachefs.mount.d/block_scan.conf" '' |
| 30 | [Mount] | 29 | [Mount] |
| 31 | Environment=BCACHEFS_BLOCK_SCAN=1 | 30 | Environment=BCACHEFS_BLOCK_SCAN=1 |
| 32 | '') | 31 | '') |
diff --git a/system-profiles/bcachefs.nix b/system-profiles/bcachefs.nix index f9f048b9..ddddcc93 100644 --- a/system-profiles/bcachefs.nix +++ b/system-profiles/bcachefs.nix | |||
| @@ -1,6 +1,16 @@ | |||
| 1 | { pkgs, ... } : { | 1 | { pkgs, lib, ... } : { |
| 2 | config = { | 2 | config = { |
| 3 | boot.supportedFilesystems.bcachefs = true; | 3 | boot.supportedFilesystems.bcachefs = true; |
| 4 | environment.systemPackages = with pkgs; [ bcachefs-tools ]; | 4 | environment.systemPackages = with pkgs; [ bcachefs-tools ]; |
| 5 | |||
| 6 | boot.kernelPatches = [ | ||
| 7 | { | ||
| 8 | name = "bcachefs-casefold-fix"; | ||
| 9 | patch = null; | ||
| 10 | extraStructuredConfig = with lib.kernel; { | ||
| 11 | UNICODE = no; | ||
| 12 | }; | ||
| 13 | } | ||
| 14 | ]; | ||
| 5 | }; | 15 | }; |
| 6 | } | 16 | } |
