summary refs log tree commit diff
path: root/nixos/default.nix
AgeCommit message (Collapse)AuthorFilesLines
2021-12-17nixos: Make system.build.vm a standard attribute based on vmVariantRobert Hensing1-3/+1
2021-12-17nixos: Move build-vm into virtualisation.vmVariantRobert Hensing1-20/+2
... which is like a specialisation, but for nixos-rebuild build-vm
2021-12-17nixos/default.nix: Use extendModulesRobert Hensing1-19/+16
2021-01-08nixos: fix "nixos-rebuild build-vm-with-bootloader" for EFI systemsBjørn Forsman1-0/+5
(The first version of this change, in commit 39fad297fd, broke `nix-build -A nixosTests.installer.simpleUefiSystemdBoot`. This is the 2nd version, which hopefully does not break anything.) `nixos-rebuild build-vm-with-bootloader` currently fails with the default NixOS EFI configuration: $ cat >configuration.nix <<EOF { fileSystems."/".device = "/dev/sda1"; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; } EOF $ nixos-rebuild build-vm-with-bootloader -I nixos-config=$PWD/configuration.nix -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz [...] insmod: ERROR: could not insert module /nix/store/1ibmgfr13r8b6xyn4f0wj115819f359c-linux-5.4.83/lib/modules/5.4.83/kernel/fs/efivarfs/efivarfs.ko.xz: No such device mount: /sys/firmware/efi/efivars: mount point does not exist. [ 1.908328] reboot: Power down builder for '/nix/store/dx2ycclyknvibrskwmii42sgyalagjxa-nixos-boot-disk.drv' failed with exit code 32 [...] Fix it by setting virtualisation.useEFIBoot = true when needed. Before: * release-20.03: successful build, unsuccessful run * release-20.09 (and master): unsuccessful build After: * Successful build and run. Fixes #107255
2018-02-09nixos: export packages of the current configuration (its `pkgs` argument)Jan Malakhovski1-3/+1
Allows one to access a package configured with overrides given in `nixpkgs.config`, e.g.: nix-build ./nixos/default.nix -A pkgs.ffmpeg
2017-03-06Remove nixFallbackEelco Dolstra1-3/+0
This causes unintended schema upgrades, and is no longer needed now that we have nixos/modules/installer/tools/nix-fallback-paths.nix.
2016-04-18nix: Add a "dev" outputEelco Dolstra1-1/+1
This gets rid of boehm-dev in the closure (as well as Nix's own headers).
2016-03-01Revert "Add the tool "nixos-typecheck" that can check an option declaration to:"Eelco Dolstra1-2/+0
This reverts commit cad8957eabcbf73062226d28366fd446c15c8737. It breaks NixOps, but more importantly, such major changes to the module system really need to be reviewed.
2016-02-29Add the tool "nixos-typecheck" that can check an option declaration to:Thomas Strobel1-0/+2
- Enforce that an option declaration has a "defaultText" if and only if the type of the option derives from "package", "packageSet" or "nixpkgsConfig" and if a "default" attribute is defined. - Enforce that the value of the "example" attribute is wrapped with "literalExample" if the type of the option derives from "package", "packageSet" or "nixpkgsConfig". - Warn if a "defaultText" is defined in an option declaration if the type of the option does not derive from "package", "packageSet" or "nixpkgsConfig". - Warn if no "type" is defined in an option declaration.
2016-02-27Revert "Add a way to pin a NixOS version within the module system."Eelco Dolstra1-12/+4
This reverts commit a5992ad61b314104aff7e28a41ce101a1b0e7c35. Motivation: https://github.com/NixOS/nixpkgs/commit/a5992ad61b314104aff7e28a41ce101a1b0e7c35#commitcomment-14986820
2015-11-19Add a way to pin a NixOS version within the module system.Nicolas B. Pierron1-4/+12
This modification add a way to re-evaluate the module system with a different version of NixOS, or with a different set of arguments.
2013-10-28Fix nixos-optionEelco Dolstra1-3/+3
In particular, it no longer produces an "infinite recursion" error when run with no arguments.
2013-10-10Update the release expressions and the channel generatorsEelco Dolstra1-4/+3
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra1-0/+44