Eelco Dolstra
48768f3129
NixOS ISO: Set empty root password
2014-05-21 12:04:08 +02:00
Eelco Dolstra
e135e6b35b
nixos-install: Copy /etc/hosts
...
http://hydra.nixos.org/build/11130069
2014-05-21 11:20:33 +02:00
Eelco Dolstra
1c4fd9b25d
nixos-install: Run in a separate UTS namespace
...
This prevents the activation script from clobbering our hostname.
2014-05-09 13:25:53 +02:00
Eelco Dolstra
61bdad6775
nixos-install: Don't bind-mount all of /etc
...
We only need a copy of /etc/resolv.conf for networking, and
/etc/{passwd,group} for building.
2014-05-09 00:52:02 +02:00
Eelco Dolstra
3ef8d6ad5c
nixos-install: Add operation --chroot
...
"nixos-install --chroot" runs a command (by default a login shell) in
a chroot inside the NixOS installation in /mnt. This might useful for
poking around a new installation.
2014-05-09 00:52:02 +02:00
Eelco Dolstra
4fc151b5a3
nixos-install: Ask the user to set a root password
...
This removes the need to have an initially empty root password.
2014-05-09 00:52:02 +02:00
Eelco Dolstra
8919d736a0
nixos-install: Don't copy the bootstrap Nix if it's already there
...
This makes re-running nixos-install a bit faster.
2014-05-09 00:52:02 +02:00
Eelco Dolstra
22f102cbdc
nixos-install: Assume the build user group is "nixbld"
...
The build user group is always "nixbld", so no need to detect it.
2014-05-09 00:52:02 +02:00
Eelco Dolstra
171d43ba4f
nixos-install: Run in a private mount namespace
...
This ensures that all mounts are automatically cleaned up.
2014-05-09 00:52:02 +02:00
Eelco Dolstra
e0e656ef46
nixos-install: Don't pass --show-trace by default
2014-05-09 00:51:48 +02:00
Eelco Dolstra
4b7c606589
nixos-generator-config: Don't emit a double / in bind mounts
2014-05-09 00:51:48 +02:00
Eelco Dolstra
dc78ae327c
nixos-generate-config: Don't include /var/setuid-wrappers
2014-05-09 00:51:48 +02:00
Eelco Dolstra
91afe9eb8d
nixos-generate-config: Use stable device paths (e.g. /dev/disk/by-uuid/X)
2014-05-09 00:51:48 +02:00
Eelco Dolstra
1bd8ced9c0
Don't enable the NVIDIA driver by default because it's unfree
2014-05-09 00:51:48 +02:00
Vladimír Čunát
2aa3580a5e
nixos-generate-config.pl: add new PCI IDs for broadcom_sta
...
The last ID wasn't in official README,
but it was reported by third3ye on IRC.
2014-05-08 15:24:41 +02:00
Eelco Dolstra
30180e8a24
Fix incorrect comment
2014-05-08 12:29:59 +02:00
Eelco Dolstra
0b091e1286
Mark builds from git explicitly
2014-05-01 15:05:14 +02:00
Eelco Dolstra
1d8f7e63b0
Punctuation
2014-04-30 16:39:56 +02:00
Shea Levy
8e9de81857
Merge remote-tracking branch 'origin/modernize_nixos_generate_config'
...
modernize nixos-generate-config
2014-04-30 10:23:52 -04:00
Domen Kozar
88a8ec37d3
modernize nixos-generate-config
2014-04-30 16:14:53 +02:00
Eelco Dolstra
9bb209a3bd
gummiboot: Automatically disable GRUB
2014-04-30 11:47:18 +02:00
Eelco Dolstra
8c75ae3838
nixos-generate-config: Use systemd-detect-virt instead of dmidecode
...
Dmidecode fails in our EFI test with the error "SMBIOS entry point
missing". But we don't need dmidecode because we have already have
systemd-detect-virt.
2014-04-30 11:26:39 +02:00
Eelco Dolstra
3fe96bcca1
Rename hardware.opengl.videoDrivers back to services.xserver.videoDrivers
...
Fixes #2379 .
The new name was a misnomer because the values really are X11 video
drivers (e.g. ‘cirrus’ or ‘nvidia’), not OpenGL implementations. That
it's also used to set an OpenGL implementation for kmscon is just
confusing overloading.
2014-04-29 14:42:36 +02:00
Eelco Dolstra
5c62d3d26b
nixos-rebuild: Handle $SHELL not being bash
2014-04-18 16:05:20 +02:00
Eelco Dolstra
00372ca638
nixos-rebuild: Fallback for upgrading Nix
...
Previously, if the currently installed Nix is too old to evaluate
Nixpkgs, then nixos-rebuild would fail and the user had to upgrade Nix
manually. Now, as a fallback, we run ‘nix-store -r’ to obtain a binary
Nix directly from the binary cache.
2014-04-15 12:07:34 +02:00
Eelco Dolstra
f9e6181478
nixos-rebuild: Exec nixos-rebuild from the new Nixpkgs tree
...
This allows doing any necessary actions that were not in the installed
nixos-rebuild (such as downloading a new version of Nix). This does
require us to be careful that nixos-rebuild is backwards-compatible
(i.e. can run in any old installation).
2014-04-15 12:07:29 +02:00
Eelco Dolstra
29027fd1e1
Rewrite ‘with pkgs.lib’ -> ‘with lib’
...
Using pkgs.lib on the spine of module evaluation is problematic
because the pkgs argument depends on the result of module
evaluation. To prevent an infinite recursion, pkgs and some of the
modules are evaluated twice, which is inefficient. Using ‘with lib’
prevents this problem.
2014-04-14 16:26:48 +02:00
Eelco Dolstra
e2bc9a3d14
Include Archive::Cpio in the installation CD
...
http://hydra.nixos.org/build/10268978
2014-04-11 17:16:44 +02:00
Eelco Dolstra
d2155649af
Merge branch 'containers'
...
Fixes #2105 .
2014-04-10 15:55:51 +02:00
Eelco Dolstra
caf98828bb
nixos-generate-config: Fix PCI/USB checks
...
As reported by Kirill Elagin, read_file doesn't chomp its output. So
the equality tests on PCI/USB vendor and device IDs were failing.
2014-04-08 15:13:27 +02:00
Eelco Dolstra
819e7c9fbd
Add a test for NixOS containers
2014-04-03 16:36:24 +02:00
Eelco Dolstra
075168ca81
nixos-hardware-scan: Detect QEMU
2014-03-30 17:27:18 +02:00
Ellis Whitehead
9af5d4731d
typo: occured -> occurred
2014-03-07 19:39:55 +01:00
Ricardo M. Correia
a146fdab80
nixos-generate-config: Don't generate filesystem options
...
We don't want to hardcode configuration options that the current kernel chose
for us when mounting the filesystem, since the defaults can change in the
future.
2014-02-19 17:18:50 +01:00
Ricardo M. Correia
cea9a1a242
nixos-generate-config: Don't generate /var/lib/nfs/rpc_pipefs filesystem
...
It's automatically mounted if the system has support for NFS.
2014-02-19 17:18:49 +01:00
Pascal Wittmann
ff7e234fb4
Removed obsolete option services.xserver.videoDriver
2014-02-18 23:13:00 +01:00
Pascal Wittmann
516cdc25a4
Renamed obsolete option services.xserver.videoDrivers to hardware.opengl.videoDrivers
2014-02-18 23:11:49 +01:00
Ricardo M. Correia
cba2444d11
nixos/memtest: Allow user to specify memtest86 boot parameters
2014-02-09 13:55:37 +01:00
Shea Levy
d6ef65cb6a
Limit livecd label to 11 characters
...
vfat partition labels can only be 11 characters long
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-03 17:05:04 -05:00
aszlig
795941261a
nixos-generate-config: Fix reference to <nixos>.
...
IIUC, <nixos> is going to be deprecated someday in the future, and as
most of those references are already replaced I guess it's safe to
replace it here as well, as it is only relevant on new/updated
installations.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-01-29 13:23:30 +01:00
Aristid Breitkreuz
5d3d6b3799
support -Q in nixos-rebuild
2014-01-25 11:20:25 +01:00
Shea Levy
cc69da4314
Put /efi and /loader on the main livecd partition for efi booting with unetbootin
...
Fixes #248 , mostly
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-11-14 18:18:46 -05:00
Eelco Dolstra
785eaf2cea
Add some primops to lib
2013-11-12 13:48:30 +01:00
Eelco Dolstra
0d5ec076d2
Use default kernel for EFI-related stuff
2013-11-07 16:38:56 +01:00
Shea Levy
cd9786eed2
Fold efi booting into the default livecd
...
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-11-01 11:29:36 -04:00
Eelco Dolstra
4d15ad22a2
Manual: Expand the Development chapter
2013-10-31 23:01:07 +01:00
Eelco Dolstra
4ccd9fdace
Remove unused file
2013-10-31 13:28:29 +01:00
Eelco Dolstra
c7171b2c8f
Comment out nixos-gui
...
It hasn't built in over 2 years.
2013-10-30 18:47:43 +01:00
Eelco Dolstra
760d0a00dc
Fix mkOverride call
2013-10-29 01:15:17 +01:00
Eelco Dolstra
3115addf4c
Fix nixos-option
...
In particular, it no longer produces an "infinite recursion" error
when run with no arguments.
2013-10-28 22:45:58 +01:00