nixpkgs/nixos/modules/installer/tools
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
..
nixos-build-vms nixos-build-vms: pass --option to nix-build 2019-02-04 10:46:12 +01:00
get-version-suffix Revert adding .git-revision unconditionally 2016-08-09 14:15:06 +02:00
nix-fallback-paths.nix nix: 2.2 -> 2.2.2 2019-04-15 19:06:57 +02:00
nixos-enter.sh Revert "Merge pull request #48122 from zimbatm/pkg-nixos-rebuild" 2018-10-16 20:25:44 +02:00
nixos-generate-config.pl nixos-generate-config: don't generate swapDevices for *files* 2019-06-16 15:26:33 +02:00
nixos-install.sh nixos/nixos-install: tell the user what to do if setting a root password failed 2019-03-08 19:57:02 +01:00
nixos-option.sh nixos-option: prune backtick from output 2019-01-24 02:37:29 +02:00
nixos-rebuild.sh Merge pull request #56115 from matthewbauer/nixos-rebuild-upgrade-nix 2019-03-02 18:48:28 -05:00
nixos-version.sh Revert "Merge pull request #48122 from zimbatm/pkg-nixos-rebuild" 2018-10-16 20:25:44 +02:00
tools.nix nixos-generate-config: do not build btrfs-tools when btrfs is not used 2019-04-25 12:08:20 +00:00