summary refs log tree commit diff
path: root/nixos/modules/system/boot/kernel.nix
Commit message (Collapse)AuthorAge
* initrd.availableKernelModules: add support for keyboardsVladimír Čunát2014-08-12
| | | | | As explained in #2169, some keyboards need special drivers, so these are always added, both on installation and normal systems.
* Merge branch 'modulesfix' of git://github.com/kirelagin/nixpkgsShea Levy2014-04-21
|\ | | | | | | ohci_pci is required in initrd since kernel 3.11
| * ohci_pci is required in initrd since kernel 3.11Kirill Elagin2014-04-21
| |
* | kmod-static-nodes: Drop superfluous wantedByEelco Dolstra2014-04-18
| |
* | Allow upstream systemd units to be extendedEelco Dolstra2014-04-17
| | | | | | | | | | | | | | | | | | | | | | | | If you define a unit, and either systemd or a package in systemd.packages already provides that unit, then we now generate a file /etc/systemd/system/<unit>.d/overrides.conf. This makes it possible to use upstream units, while allowing them to be customised from the NixOS configuration. For instance, the module nix-daemon.nix now uses the units provided by the Nix package. And all unit definitions that duplicated upstream systemd units are finally gone. This makes the baseUnit option unnecessary, so I've removed it.
* | Enable kmod-static-nodes.serviceEelco Dolstra2014-04-17
| | | | | | | | | | | | This creates static device nodes such as /dev/fuse or /dev/snd/seq. The kernel modules for these devices will be loaded on demand when the device node is opened.
* | Set MODULE_DIR in systemd-load-modules.serviceEelco Dolstra2014-04-16
| |
* | Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
|/ | | | | | | | 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.
* Run hwclock --hctosys to initialize the system timeEelco Dolstra2014-03-18
|
* Always load the "configs" kernel moduleEelco Dolstra2014-03-05
| | | | | | | We used to have the configuration of the kernel available in a somewhat convenient place (/run/booted-system/kernel-modules/config) but that has disappeared. So instead just make /proc/configs.gz available. It only eats a few kilobytes.
* nixos initrd: load atkbd, not xtkbdLluís Batlle i Rossell2013-12-23
| | | | I don't think anyone has a XT keyboard in a computer running nixos.
* Add support for lightweight NixOS containersEelco Dolstra2013-11-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now say: systemd.containers.foo.config = { services.openssh.enable = true; services.openssh.ports = [ 2022 ]; users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-dss ..." ]; }; which defines a NixOS instance with the given configuration running inside a lightweight container. You can also manage the configuration of the container independently from the host: systemd.containers.foo.path = "/nix/var/nix/profiles/containers/foo"; where "path" is a NixOS system profile. It can be created/updated by doing: $ nix-env --set -p /nix/var/nix/profiles/containers/foo \ -f '<nixos>' -A system -I nixos-config=foo.nix The container configuration (foo.nix) should define boot.isContainer = true; to optimise away the building of a kernel and initrd. This is done automatically when using the "config" route. On the host, a lightweight container appears as the service "container-<name>.service". The container is like a regular NixOS (virtual) machine, except that it doesn't have its own kernel. It has its own root file system (by default /var/lib/containers/<name>), but shares the Nix store of the host (as a read-only bind mount). It also has access to the network devices of the host. Currently, if the configuration of the container changes, running "nixos-rebuild switch" on the host will cause the container to be rebooted. In the future we may want to send some message to the container so that it can activate the new container configuration without rebooting. Containers are not perfectly isolated yet. In particular, the host's /sys/fs/cgroup is mounted (writable!) in the guest.
* Disable various services when running inside a containerEelco Dolstra2013-11-26
|
* Fix broken Conflicts optionsEelco Dolstra2013-11-18
|
* Add lots of missing option typesEelco Dolstra2013-10-30
|
* Remove uses of the "merge" option attributeEelco Dolstra2013-10-28
| | | | | It's redundant because you can (and should) specify an option type, or an apply function.
* Add missing typesEelco Dolstra2013-10-28
|
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10