diff --git a/modules/installer/cd-dvd/installation-cd-rescue.nix b/modules/installer/cd-dvd/installation-cd-rescue.nix index ed5184c69cb3..43b9c9e2b7c1 100644 --- a/modules/installer/cd-dvd/installation-cd-rescue.nix +++ b/modules/installer/cd-dvd/installation-cd-rescue.nix @@ -4,48 +4,8 @@ {config, pkgs, ...}: { - require = [./installation-cd-base.nix]; - - installer.configModule = "./nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"; - - # Don't include X libraries. - services.openssh.forwardX11 = false; - services.dbus.enable = false; # depends on libX11 - services.hal.enable = false; # depends on dbus - fonts.enableFontConfig = false; - fonts.enableCoreFonts = false; - - # Useful for rescue.. - environment.systemPackages = with pkgs; [ - utillinuxCurses ddrescue - pciutils sdparm hdparm hddtemp usbutils - btrfsProgs xfsprogs jfsutils jfsrec - iproute - fuse ntfs3g smbfsFuse sshfsFuse - manpages irssi elinks mcabber mutt openssh lftp - openssl ncat socat - gnupg1 gnupg - patch which diffutils gcc binutils bc file - screen - bvi joe nvi - subversion16 monotone git darcs mercurial bazaar cvs - unrar unzip zip lzma cabextract cpio - lsof + require = [ + ./installation-cd-base.nix + ../../profiles/rescue.nix ]; - - boot.kernelPackages = pkgs.linuxPackages_2_6_32; - boot.initrd.kernelModules = ["evdev" "i8042" "pcips2" "serio" - "sd_mod" "libata" "unix" "usbhid" "uhci_hcd" "atkbd" "xtkbd" "fbdev" - "iso9660" "udf" "loop"]; - boot.kernelModules = ["fbcon" "radeonfb" "intelfb" "sisfb" "nvidiafb" - "cirrusfb"]; - boot.kernelParams = [ - "selinux=0" - "acpi=on" - "apm=off" - "console=tty1" - "splash=verbose" - ]; - - services.ttyBackgrounds.enable = false; } diff --git a/modules/profiles/rescue.nix b/modules/profiles/rescue.nix new file mode 100644 index 000000000000..b3b830e6618f --- /dev/null +++ b/modules/profiles/rescue.nix @@ -0,0 +1,52 @@ +# This module defines a small NixOS configuration. It does not contain any +# graphical stuff but contains many tools useful for the rescue. + +{config, pkgs, ...}: + +{ + require = [ ./minimal.nix ]; + + # Useful for rescue.. + environment.systemPackages = with pkgs; [ + utillinuxCurses ddrescue + pciutils sdparm hdparm hddtemp usbutils + btrfsProgs xfsprogs jfsutils jfsrec + iproute + fuse ntfs3g smbfsFuse sshfsFuse + manpages irssi elinks mcabber mutt openssh lftp + openssl ncat socat + gnupg1 gnupg + patch which diffutils gcc binutils bc file + screen + bvi joe nvi + subversion16 monotone git darcs mercurial bazaar cvs + unrar unzip zip lzma cabextract cpio + lsof + ]; + + boot.kernelPackages = pkgs.linuxPackages_2_6_32; + + boot.initrd.kernelModules = [ + "evdev" "i8042" "pcips2" "serio" "sd_mod" "libata" "unix" "usbhid" + "uhci_hcd" "atkbd" "xtkbd" "fbdev" "iso9660" "udf" "loop" + ]; + + boot.kernelModules = [ + "fbcon" + "radeonfb" + "intelfb" + "sisfb" + "nvidiafb" + "cirrusfb" + ]; + + boot.kernelParams = [ + "selinux=0" + "acpi=on" + "apm=off" + "console=tty1" + "splash=verbose" + ]; + + services.ttyBackgrounds.enable = false; +}