summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-07-18 10:45:01 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-07-18 10:45:01 +0200
commitcc61a97263b5622d926bbe586c3c0205f4203ca8 (patch)
tree5ce0ec2c30a55e0b453d5b476ccb9989db03d41a
parent7ce1b9fd85980e987908a4296b19c1405278a793 (diff)
downloadnixos-cc61a97263b5622d926bbe586c3c0205f4203ca8.tar
nixos-cc61a97263b5622d926bbe586c3c0205f4203ca8.tar.gz
nixos-cc61a97263b5622d926bbe586c3c0205f4203ca8.tar.bz2
nixos-cc61a97263b5622d926bbe586c3c0205f4203ca8.tar.xz
nixos-cc61a97263b5622d926bbe586c3c0205f4203ca8.zip
...
-rw-r--r--hosts/sif/hw.nix3
-rw-r--r--system-profiles/bcachefs.nix12
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}