nixpkgs-suyu/nixos/modules/installer
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
..
cd-dvd treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
netboot nixos/netboot: import -> callPackage 2019-04-18 01:11:04 +00:00
scan [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
tools nixos-generate-config: don't generate swapDevices for *files* 2019-06-16 15:26:33 +02:00
virtualbox-demo.nix ova: remove stateVersion 2019-03-09 14:25:05 -05:00