nixpkgs/nixos
Bjørn Forsman 9e45f6feac nixos-generate-config: don't generate swapDevices for *files*
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.
2019-06-16 15:26:33 +02:00
..
doc Merge pull request #63100 from aanderse/phabricator-remove 2019-06-15 13:08:48 +02:00
lib nixos: Make nesting.children work in NixOS tests 2019-05-29 12:50:49 +02:00
maintainers treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
modules nixos-generate-config: don't generate swapDevices for *files* 2019-06-16 15:26:33 +02:00
tests flatpak-builder: 1.0.6 -> 1.0.7 (#62413) 2019-06-16 01:39:09 +02:00
COPYING
default.nix
README
release-combined.nix nixos/release: make ipv6 tests as important as legacy IP tests 2019-03-24 18:09:39 +01:00
release-small.nix nixos/release: make ipv6 tests as important as legacy IP tests 2019-03-24 18:09:39 +01:00
release.nix

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.