Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/nixos/modules/tasks/filesystems/jfs.nix

20 lines
460 B
Nix
Raw Normal View History

nixos: Add a filesystem module for JFS. I'm not using JFS, but this is to mainly make jfsutils available if you have defined a JFS filesystem in your configuration. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-10-22 01:50:15 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
inInitrd = any (fs: fs == "jfs") config.boot.initrd.supportedFilesystems;
in
{
config = mkIf (any (fs: fs == "jfs") config.boot.supportedFilesystems) {
system.fsPackages = [ pkgs.jfsutils ];
boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ];
nixos/filesystems: Make most simple filesystems compatible with systemd This includes disabling some features in the initrd by default, this is only done when the new initrd is used. Namely, ext and bcache are disabled by default. bcache gets an own enable option while ext is detected like any other filesystem.
2022-04-16 20:46:32 +01:00
boot.initrd.extraUtilsCommands = mkIf (inInitrd && !boot.initrd.systemd.enable) ''
nixos/initrd: Generic library copying
2015-03-28 17:15:41 -07:00
copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs
nixos: Add a filesystem module for JFS. I'm not using JFS, but this is to mainly make jfsutils available if you have defined a JFS filesystem in your configuration. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-10-22 01:50:15 +02:00
'';
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 4769ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API