Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: b0ccba1a2da2
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 9e45f6feac63
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 16, 2019

  1. 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.
    bjornfor committed Jun 16, 2019
    Copy the full SHA
    9e45f6f View commit details
    Browse the repository at this point in the history