2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2012-03-09 14:37:58 +00:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2012-03-09 14:37:58 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
inInitrd = any (fs: fs == "reiserfs") config.boot.initrd.supportedFilesystems;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
config = mkIf (any (fs: fs == "reiserfs") config.boot.supportedFilesystems) {
|
|
|
|
|
|
|
|
system.fsPackages = [ pkgs.reiserfsprogs ];
|
|
|
|
|
|
|
|
boot.initrd.kernelModules = mkIf inInitrd [ "reiserfs" ];
|
|
|
|
|
|
|
|
boot.initrd.extraUtilsCommands = mkIf inInitrd
|
|
|
|
''
|
2015-03-29 00:15:41 +00:00
|
|
|
copy_bin_and_libs ${pkgs.reiserfsprogs}/sbin/reiserfsck
|
2015-03-29 03:07:45 +01:00
|
|
|
ln -s reiserfsck $out/bin/fsck.reiserfs
|
2012-03-09 14:37:58 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|