summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-generate-config.pl
Commit message (Collapse)AuthorAge
* nixos/nixos-generate-config: move dhcpConfig from configuration.nix to ↵Artturin2022-02-09
| | | | hardware-configuration.nix
* nixos/nixos-generate-config: fix proram path replacementsArtturin2022-02-09
| | | | | btrfs-progs was made optional in 2019 c01ea27ce356e1433da01a7b46ba40c880f2f2ac because it didn't cross-compile. it now does
* nixos-generate-config: automatically enable microcode updatesArtturin2021-11-15
|
* nixos/tools: generate an xserver configWORLDofPEACE2021-02-13
| | | | | The desktop configuration won't enable xserver. If there's multiple desktops enabled they will now evaluate properly.
* Support virtio_scsi devices on nixos-generate-configVictor Nawothnig2020-11-04
|
* nixos/tools: add desktopConfiguration optionWORLDofPEACE2020-10-12
| | | | | We now have a GNOME ISO so it would be nice to seed that one with configuration on how to enable it.
* nixos-generate-config: Add missing newlineEelco Dolstra2020-10-03
|
* Merge pull request #88669 from Mic92/hidpiLinus Heckemann2020-07-22
|\ | | | | nixos/hidpi: Reasonable defaults for high-density displays
| * nixos-generate-config: enable hidpi module for displaysJörg Thalheim2020-05-24
| |
* | nixos-generate-config: refer to nixos-hardwareJörg Thalheim2020-06-22
|/
* nixos/nixos-generate-config.pl: use modulesPath instead of <nixpkgs>Matthew Bauer2020-04-20
| | | | | | For imports, it is better to use ‘modulesPath’ than rely on <nixpkgs> being correctly set. Some users may not have <nixpkgs> set correctly. In addition, when ‘pure-eval=true’, <nixpkgs> is unset.
* nixos: default nix.maxJobs to autoJörg Thalheim2020-04-07
| | | | | Instead of making the configuration less portable by hard coding the number of jobs equal to the cores we can also let nix set the same number at runtime.
* nixos-generate-config: i18n.consoleFont has been renamed to console.fontPavol Rusnak2019-12-25
| | | | fixes #76391
* nixos-generate-config: don't generate swapDevices for zram devices (#75921)buckley3102019-12-19
|
* nixos-generate-config: add useDHCP per interfaceRobin Gloster2019-09-24
| | | | | | This sets networking.useDHCP to false and for all interfaces found the per-interface useDHCP to true. This replicates the current default behaviour and prepares for the switch to networkd.
* nixos-generate-config: enable overriding configuration.nixBas van Dijk2019-08-08
|
* nixos-generate-config: don't emit tmpfs entry for /tmpBjørn Forsman2019-06-16
| | | | | Because it most likely comes from the boot.tmpOnTmpfs option in configuration.nix (managed declaratively).
* nixos-generate-config: add dm-snapshot module if LVM is detectedBjørn Forsman2019-06-16
| | | | | | | | | | Without this, the system becomes unbootable if the user creates a LVM snapshot and reboots. Fixes https://github.com/NixOS/nixpkgs/issues/33646 (The same kind of problem was fixed in RHEL a few years back: https://bugzilla.redhat.com/show_bug.cgi?id=1287940)
* nixos-generate-config: don't generate swapDevices for *files*Bjørn Forsman2019-06-16
| | | | | | | | | | | | | | | | | | Up until now, the output has been the same for swap devices and swap files: { device = "/var/swapfile"; } Whereas for swap *files* it's easier to manage them declaratively in configuration.nix: { device = "/var/swapfile"; size = 8192; } (NixOS will create the swapfile, and later resize it, if the size attribute is changed.) With the assumption that swap files are specified in configuration.nix, it's silly to output them to hardware-configuration.nix.
* nixos-generate-config: add support for bcacheBjørn Forsman2019-06-10
| | | | | | | | | Add "bcache" to boot.initrd.availableKernelModules if a bcache device is detected. This fixes a problem I've had one too many times: I install NixOS and forget to add "bcache", resulting in an unbootable machine (until fixed with Live CD). Now NixOS will do it for me.
* nixos-generate-config: add rudimentary high-DPI detectionLinus Heckemann2019-05-15
| | | | Fixes the main remaining part of #12345
* nixos-generate-config: Don't suggest setting a uidEelco Dolstra2019-02-11
| | | | | | | This hasn't been needed for a long time, even when `mutableUsers = false`. Setting a uid manually is potentially risky since it could collide with non-declarative user accounts. (We do check for collisions between declarative accounts.)
* nixos-generate-config: account for mount points & devices with spaces & tabs ↵aanderse2019-02-03
| | | | in the name (#50234)
* nixos-generate-config: Include extraGroups "wheel"devhell2019-01-27
| | | | | | | | | | | | | | | I've been asked, on numerous occasions, by my students and others, how to 'sudo' on NixOS. Of course new users could read up in the manual on how to do that, or we could make it more accessible for them by simply making it visible in the default `configuration.nix` file. Additionally, as raised in [1], replacing `guest` with something more recognizable could be potentially beneficial to new users. I've opted for `jane` for now. [1]: https://github.com/NixOS/nixpkgs/pull/54519#issuecomment-457012223
* installer/tools: Avoid duplicate LUKS device entries in hw configClaudio Bley2019-01-19
| | | | | | | | | There are situations where several filesystems reside on a single encrypted LUKS device (e.g. when using BTRFS subvolumes). Simply generating a `boot.init.luks.devices.NAME.device` entry for each mounted filesystem will result in an error later when evaluating the nix expression in `hardware-configuration.nix`.
* nixos/cpufreq: Remove the alias to set the cpu frequency governor(cdep)illabout2019-01-03
| | | | | | | | | | This PR temporarily fixes the issue with PR 53041 as explained here: https://github.com/NixOS/nixpkgs/pull/53041#commitcomment-31825338 The alias `powerManagement.cpufreq.governor` to `powerManagement.cpuFreqGovernor` has been removed.
* cpufreq: add option for setting the cpu max and min frequencies(cdep)illabout2019-01-01
| | | | | | | | | | | | | This adds a NixOS option for setting the CPU max and min frequencies with `cpufreq`. The two options that have been added are: - `powerManagement.cpufreq.max` - `powerManagement.cpufreq.min` It also adds an alias to the `powerManagement.cpuFreqGovernor` option as `powerManagement.cpufreq.governor`. This updates the installer to use the new option name. It also updates the manual with a note about the new name.
* nixos-generate-config: fix for swapless kernelsPatrick Hilhorst2018-11-06
| | | | Fixes #49826
* Revert "Merge pull request #48122 from zimbatm/pkg-nixos-rebuild"Eelco Dolstra2018-10-16
| | | | | | | | | This reverts commit 10addad6035034b2b78f3c74ef436cd7146d5231, reversing changes made to 7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2. NixOS scripts should be kept in the NixOS source tree, not in pkgs. Moving them around is just confusing and creates unnecessary code/history churn.
* nixos-*: init as packagezimbatm2018-10-16
| | | | | | | | | | Move all the nixos-* scripts from the nixos distribution as real packages in the pkgs/ package set. This allows non-nixos users to run the script as well. For example, deploying a remote machine with: nixos-rebuild --target-host root@hostname --build-host root@hostname
* nixos-installer: use the hyperv module on hypervPeter Hoeg2018-09-28
|
* nixos-generate-config.pl: remove executable bitUli Baum2018-09-01
| | | | | it was erroneously set in cb1ca420092c8854592afcf1cc0245b7245358f1 although this file isn't executable before patching shebangs.
* nixos-generate-config: fix perl quoting after cb1ca42Vladimír Čunát2018-09-01
|
* nixos/doc: add instructions for installation behind a proxy (#45854)Venkateswara Rao Mandela2018-09-01
| | | | | | | | | | | | | | | | The instructions to install nixos behind a proxy were not clear. While one could guess that setting http_proxy variables can get the install rolling, one could end up with an installed system where the proxy settings for the nix-daemon are not configured. This commit updates the documentation with 1. steps to install behind a proxy 2. configure the global proxy settings so that nix-daemon can access internet. 3. Pointers to use nesting.clone in case one has to use different proxy settings on different networks.
* Merge pull request #44108 from bennofs/gen-config-extlinuxSilvan Mosberger2018-08-05
|\ | | | | nixos-generate-config: detect extlinux bootloader
| * nixos-generate-config: detect extlinux bootloaderBenno Fünfstück2018-07-25
| |
* | Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1"Tuomas Tynkkynen2018-07-28
|/ | | | | | | | | | | This reverts commit 095fe5b43def40279a243e663c662b02caac5318. Pointless renames considered harmful. All they do is force people to spend extra work updating their configs for no benefit, and hindering the ability to switch between unstable and stable versions of NixOS. Like, what was the value of having the "nixos." there? I mean, by definition anything in a NixOS module has something to do with NixOS...
* nixos-generate-config.pl: users.extraUsers-> users.usersFlorian Klink2018-06-30
|
* nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1Jan Malakhovski2018-05-12
|
* nixos/nixos-generate-config: update search commandJörg Thalheim2018-04-27
|
* nixos: enable bash command completion by defaultBjørn Forsman2018-04-13
| | | | | | | | Because it improves out-of-the-box user experience a lot (IMHO). (zsh completion is already on by default.) Remove "programs.bash.enableCompletion = true" from nixos-generate-config.pl, which feels superflous now.
* nixos: disable sound by default, if stateVersion >= 18.03 (#35355)Aristid Breitkreuz2018-02-22
|
* nixos: rename config.system.nixos* -> config.system.nixos.*Jan Malakhovski2018-02-18
|
* nixos-generate-config: enforce umask 0022, fixes #30954Yegor Timoshenko2017-10-30
|
* nixos-generate-config: lessen priority for cpuFreqGovernor (#30221)Danylo Hlynskyi2017-10-20
| | | | | | | | | | In particular, it conflicts with `services.tlp.enable` option. There exists workaround: ``` powerManagement.cpuFreqGovernor = lib.mkForce null; services.tlp.enable = true; ``` But should it?
* nixos: Fix detection of btrfs root volumeaszlig2017-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regression introduced by 801c920e95642ec663d4aa486c81e5443e25b182. Since then, the btrfsSimple subtest of the installer VM test fails with: Btrfs did not return a path for the subvolume at / The reason for this is that the output for "btrfs subvol show" has changed between version 4.8.2 and 4.13.1. For example the output of "btrfs subvol show /" in version 4.8.2 was: / is toplevel subvolume In version 4.13.1, the output now is the following and thus the regular expressions used in nixos-generate-config.pl and install-grub.pl now match (which results in the error mentioned above): / Name: <FS_TREE> UUID: - Parent UUID: - Received UUID: - Creation time: - Subvolume ID: 5 Generation: 287270 Gen at creation: 0 Parent ID: 0 Top level ID: 0 Flags: - Snapshot(s): In order to fix this I've changed nixos-generate-config.pl and install-grub.pl, because both use "btrfs subvol show" in a similar vein, so the regex for parsing the output now doesn't match anymore whenever the volume path is "/", which should result in the same behaviour as we had with btrfs-progs version 4.8.2. Tested against the btrfsSimple, btrfsSubvols and btrfsSubvolDefault subtests of the installer VM test and they all succeed now. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* btrfs-progs: 4.8.2 -> 4.13.1Franz Pletz2017-10-07
|
* nixos-generate-config: add programs options examplesFranz Pletz2017-09-23
|
* configuration.nix: Document the stateVersion moreGraham Christensen2017-08-30
|
* installer: add a comment hinting about enabling libinput for touchpadsGraham Christensen2017-08-30
|