Author: raskin
Date: Mon Nov 15 20:18:09 2010
New Revision: 24698
URL: https://svn.nixos.org/websvn/nix/?rev=24698&sc=1
Log:
Use ~/script; add formatting of /tmp and a special-purpose console on tty12;
Modified:
configurations/trunk/misc/raskin/raskin-asus-n53j.nix
Modified: configurations/trunk/misc/raskin/raskin-asus-n53j.nix
==============================================================================
--- configurations/trunk/misc/raskin/raskin-asus-n53j.nix Mon Nov 15
20:17:04 2010 (r24697)
+++ configurations/trunk/misc/raskin/raskin-asus-n53j.nix Mon Nov 15
20:18:09 2010 (r24698)
@@ -89,6 +89,24 @@
];
hardwareScan = false;
resumeDevice = "8:8";
+ postBootCommands = ''
+ exec &> /var/log/post-boot-commands
+ /var/run/current-system/sw/bin/mount /sys
+ /var/run/current-system/sw/bin/umount /tmp/
+ /var/run/current-system/sw/bin/mkfs.btrfs -L tmp /dev/disk/by-label/tmp
+ /var/run/current-system/sw/bin/mount /tmp/
+ /var/run/current-system/sw/bin/chmod a+rwxt /tmp
+ /var/run/current-system/sw/bin/mkdir -m 1777 /tmp/.ICE-unix/
+ ! [ -e /tmp/.dev-tty12 ] && /var/run/current-system/sw/bin/mknod -m
0600 /tmp/.dev-tty12 c 4 12
+ /bin/sh -c 'while true; do
+ echo -n "Password: " ; read -s pass;
+ [ -e /root/rc/vt12-pass ] && [ "x$pass" = "x$(cat
/root/rc/vt12-pass)" ] && /bin/sh;
+ [ "x$pass" = "xhaltnow" ] && /var/run/current-system/sw/sbin/halt;
+ [ "x$pass" = "xtouchstore" ] && /var/run/current-system/sw/bin/touch
/nix/store &
+ done < /tmp/.dev-tty12 &> /tmp/.dev-tty12' &
+ /var/run/current-system/sw/sbin/modprobe i915
+ echo 1 > /sys/class/backlight/acpi_video0/brightness
+ '';
};
swapDevices = [
@@ -120,7 +138,7 @@
fatXApps windowManagers consoleTools buildSupport
utilsX widgets sound graphicView clientServer im
misc GCPin versionControl fsTools consoleEditors
- browsers graphicEdit encryption
+ browsers graphicEdit encryption libraries
]
));
@@ -132,7 +150,9 @@
];
pathsToLink = ["/"];
-
+ shellInit = ''
+ export PATH=$HOME/script/override:$PATH:$HOME/script
+ '';
};
fonts = import ./fonts.nix {inherit pkgs;};
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits