aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/system (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #68950 from peti/t/nixos-doc-fixPeter Simons2019-09-221-1/+1
|\ | | | | nixos: improve the example that shows how to include nvidia_x11 in boot.extraModulePackages
| * nixos: improve the example that shows how to include nvidia_x11 in ↔Peter Simons2019-09-171-1/+1
| | | | | | | | | | | | boot.extraModulePackages Fixes https://github.com/NixOS/nixpkgs/issues/68931.
* | Revert systemd interface version to 2Eelco Dolstra2019-09-161-6/+13
|/ | | | | | | | The new systemd in 19.09 gives an "Access Denied" error when doing "systemctl daemon-reexec" on an 19.03 system. The fix is to use the previous systemctl to signal the daemon to re-exec itself. This ensures that users don't have to reboot when upgrading from NixOS 19.03 to 19.09.
* TypoEelco Dolstra2019-09-161-1/+1
|
* Merge branch 'master' into stagingVladimír Čunát2019-09-023-9/+9
|\
| * nixos/modules: Remove all usages of types.stringSilvan Mosberger2019-08-313-9/+9
| | | | | | | | | | | | And replace them with a more appropriate type Also fix up some minor module problems along the way
* | Merge staging-next into stagingFrederik Rietdijk2019-08-311-0/+2
|\|
| * Merge pull request #67487 from dasJ/suspend-then-hibernatePeter Hoeg2019-08-281-0/+2
| |\ | | | | | | nixos/systemd: Add suspend-then-hibernate units
| | * nixos/systemd: Add suspend-then-hibernate unitsJanne Heß2019-08-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Pretty useful for laptops. I use them with: ``` services.logind.lidSwitch = "suspend-then-hibernate"; environment.etc."systemd/sleep.conf".text = "HibernateDelaySec=8h"; ```
* | | Merge staging-next into stagingFrederik Rietdijk2019-08-286-72/+120
|\| |
| * | nixos/systemd: enable cgroup accounting by defaultFlorian Klink2019-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | If this is the default for OpenShift already, we probably can enable it as well. see https://github.com/openshift/machine-config-operator/pull/581
| * | nixos/systemd: add new Default{BlockIO,IP}Accounting settingsFlorian Klink2019-08-251-0/+2
| | |
| * | nixos/systemd: honor default enableCgroupAccounting settingsFlorian Klink2019-08-251-2/+0
| |/ | | | | | | | | systemd defaults DefaultMemoryAccounting and DefaultTasksAccounting to yes, so no need to enable explicitly
| * systemd-networkd: add testsFélix Baylac-Jacqué2019-08-211-9/+33
| | | | | | | | (cherry picked from commit ec073e41a0dc8273cd81cf61fa37004310120af2)
| * systemd-networkd: add support for wireguard netdev.David Guibert2019-08-211-0/+64
| |
| * Merge pull request #58207 from teto/kernelPackages_checkMatthieu Coudron2019-08-201-0/+1
| |\ | | | | | | | | | | | | | | | boot.kernelPackages: check for conflicts It's currently possible to set conflicting `boot.kernelPackages` several times. Nixos now warns when this is the case instead of just picking one.
| | * boot.kernelPackages: check for conflictsMatthieu Coudron2019-08-101-0/+1
| | | | | | | | | | | | | | | | | | It's currently possible to set conflicting `boot.kernelPackages` several times which can prove confusing. This is an attempt to warn for this.
| * | stage-1 init: fix debug menuNikolay Amiantov2019-08-191-2/+2
| | | | | | | | | | | | | | | | | | * Read one char at a time, so user doesn't have to enter "i<ENTER>" contrary to the menu; * Exec shell inside setsid.
| * | nixos/systemd: remove separate coredump moduleFlorian Klink2019-08-182-66/+21
| | |
| * | nixos/systemd: install sysctl snippetsFlorian Klink2019-08-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd provides two sysctl snippets, 50-coredump.conf and 50-default.conf. These enable: - Loose reverse path filtering - Source route filtering - `fq_codel` as a packet scheduler (this helps to fight bufferbloat) This also configures the kernel to pass coredumps to `systemd-coredump`. These sysctl snippets can be found in `/etc/sysctl.d/50-*.conf`, and overridden via `boot.kernel.sysctl` (which will place the parameters in `/etc/sysctl.d/60-nixos.conf`. Let's start using these, like other distros already do for quite some time, and remove those duplicate `boot.kernel.sysctl` options we previously did set. In the case of rp_filter (which systemd would set to 2 (loose)), make our overrides to "1" more explicit.
| * | Merge branch 'master' into flip-map-foreachdanbst2019-08-187-28/+42
| |\ \
| * \ \ Merge branch 'master' into flip-map-foreachDanylo Hlynskyi2019-08-054-22/+47
| |\ \ \ | | | |/ | | |/|
| * | | mass replace "flip map -> forEach"danbst2019-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
| * | | Revert "mass replace "flip map -> foreach""danbst2019-08-051-1/+1
| | | | | | | | | | | | | | | | This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
| * | | mass replace "flip map -> foreach"danbst2019-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See `foreach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g' ```
* | | | treewide: remove redundant quotesvolth2019-08-266-7/+7
| |_|/ |/| |
* | | Merge master into staging-nextFrederik Rietdijk2019-08-173-6/+5
|\ \ \
| * \ \ Merge pull request #60422 from kwohlfahrt/device-treeSamuel Dionne-Riel2019-08-162-5/+4
| |\ \ \ | | | | | | | | | | nixos/hardware.deviceTree: new module
| | * | | nixos/hardware.deviceTree: new moduleKai Wohlfahrt2019-08-072-5/+4
| | | |/ | | |/| | | | | | | | | | | | | | | | | Add support for custom device-tree files, and applying overlays to them. This is useful for supporting non-discoverable hardware, such as sensors attached to GPIO pins on a Raspberry Pi.
| * | | systemd-networkd: link: Name -> OriginalNameEdmund Wu2019-08-151-1/+1
| | | |
* | | | Merge master into staging-nextFrederik Rietdijk2019-08-143-2/+11
|\| | |
| * | | Merge pull request #65728 from Infinisil/types-eithersAaron Andersen2019-08-132-2/+2
| |\ \ \ | | | | | | | | | | lib/types: Add oneOf, extension of either to a list of types
| | * | | nixos/modules: Replace all nested types.either's with types.oneOf'sSilvan Mosberger2019-08-082-2/+2
| | |/ /
| * | | Merge pull request #65002 from matthewbauer/binfmt-wasmMatthew Bauer2019-08-091-0/+9
| |\ \ \ | | |/ / | |/| | Add binfmt interpreter for wasm
| | * | nixos/binfmt: update release notes and provide examplesMatthew Bauer2019-07-171-0/+1
| | | |
| | * | nixos/binfmt: handle wasm binariesMatthew Bauer2019-07-171-0/+8
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds handling for WASM binaries to binfmt’s emulatedSystems. To enable, add this to your configuration: boot.binfmt.emulatedSystems = [ "wasm32-wasi" ]; After rebuilding with nixos-rebuild switch, you can run wasm binaries directly.
* | | systemd service: remove generator-packages optionNikolay Amiantov2019-08-011-19/+6
| | | | | | | | | | | | | | | Use systemd.packages instead, it's less error prone and more in line with what's expected.
* | | stage-1 initrd: replace absolute paths for mdadmNikolay Amiantov2019-08-011-5/+3
| | | | | | | | | | | | | | | We don't patch basename and readlink now too as they were added for mdadm in 8ecd3a5e1db4.
* | | systemd service: add support for shutdown packagesNikolay Amiantov2019-08-011-9/+30
| | | | | | | | | | | | | | | | | | Shutdown hooks are executed right before the shutdown, which is useful for some applications. Among other things this is needed for mdadm hook to run.
* | | systemd service: rename generator-packagesNikolay Amiantov2019-08-011-3/+3
|/ /
* | system-boot: configurationLimit should be null as defaultDomen KoĆŸar2019-07-231-5/+10
| |
* | Merge pull request #62955 from abbradar/resolvconfNikolay Amiantov2019-07-172-16/+36
|\ \ | | | | | | resolvconf service: init
| * | resolvconf service: initNikolay Amiantov2019-07-152-16/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a refactor of how resolvconf is managed on NixOS. We split it into a separate service which is enabled internally depending on whether we want /etc/resolv.conf to be managed by it. Various services now take advantage of those configuration options. We also now use systemd instead of activation scripts to update resolv.conf. NetworkManager now uses the right option for rc-manager DNS automatically, so the configuration option shouldn't be exposed.
* | | Merge pull request #64806 from peterhoeg/f/execPeter Hoeg2019-07-171-1/+1
|\ \ \ | |_|/ |/| | nixos/systemd: 242 supports Type = exec
| * | nixos/systemd: 242 supports Type = execPeter Hoeg2019-07-151-1/+1
| |/
* / nixos/install-grub: include child configs in grub menuVenkateswara Rao Mandela2019-07-111-0/+23
|/ | | | | Add configs listed under the fine-tune subdirectory to the grub menu. Use specified configuration name for the entry if available.
* Add configurationLimit to systemd-boot to prevent running out of disk spaceDomen KoĆŸar2019-06-222-2/+14
| | | | Refs #23926
* Merge pull request #63090 from NixOS/nomodesetMatthew Bauer2019-06-201-1/+1
|\ | | | | kernel.nix: boot.vesa implies nomodeset
| * kernel.nix: boot.vesa implies nomodesetWout Mertens2019-06-131-1/+1
| | | | | | Without nomodeset the console is reset to 80x25 after Grub
* | treewide: remove unused variables (#63177)volth2019-06-161-1/+0
| | | | | | | | | | | | * treewide: remove unused variables * making ofborg happy