File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- { config , ...} : {
1
+ {
2
+ config ,
3
+ latestZfsCompatibleKernel ,
4
+ ...
5
+ } : {
2
6
imports = [
3
7
./hardware-configuration.nix
4
8
../base.nix
50
54
boot . loader . efi . canTouchEfiVariables = false ;
51
55
52
56
# Linux kernel configuration
53
- boot . kernelPackages = config . boot . zfs . package . latestCompatibleLinuxPackages ;
57
+ boot . kernelPackages = latestZfsCompatibleKernel ;
54
58
55
59
networking . hostName = "nixos-pc" ;
56
60
networking . hostId = "4090d928" ;
Original file line number Diff line number Diff line change 1
1
{
2
2
lib ,
3
3
config ,
4
+ pkgs ,
4
5
...
5
6
} : let
6
7
cfg = config . modules . filesystem ;
14
15
} ;
15
16
16
17
config = lib . mkIf cfg . enable ( lib . mkMerge [
18
+ {
19
+ # Define latestZfsCompatibleKernel argument
20
+ # NOTE: Update this according to https://github.com/openzfs/zfs/releases
21
+ _module . args . latestZfsCompatibleKernel = pkgs . linuxPackages_6_12 ;
22
+ }
23
+
17
24
( lib . mkIf ( cfg . fsType == "btrfs" ) {
18
25
fileSystems . "/home" = {
19
26
device = "/dev/mapper/enc" ;
You can’t perform that action at this time.
0 commit comments