summary refs log tree commit diff
path: root/modules/profiles/rescue.nix
blob: b3b830e6618ff400c006fa00c9de109f26af0109 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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;
}