Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
base: 2df2efc52668
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
compare: bfc68f778a7a
Choose a head ref
  • 4 commits
  • 1 file changed
  • 1 contributor

Commits on Jun 16, 2019

  1. nixos-generate-config: add support for bcache

    Add "bcache" to boot.initrd.availableKernelModules if a bcache device is
    detected.
    
    This fixes a problem I've had one too many times: I install NixOS and
    forget to add "bcache", resulting in an unbootable machine (until fixed
    with Live CD). Now NixOS will do it for me.
    
    (cherry picked from commit 4755811)
    bjornfor committed Jun 16, 2019
    Copy the full SHA
    1fd2806 View commit details
    Browse the repository at this point in the history
  2. 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.
    
    (cherry picked from commit 9e45f6f)
    bjornfor committed Jun 16, 2019
    Copy the full SHA
    f8ebfd5 View commit details
    Browse the repository at this point in the history
  3. nixos-generate-config: add dm-snapshot module if LVM is detected

    Without this, the system becomes unbootable if the user creates a LVM
    snapshot and reboots.
    
    Fixes NixOS/nixpkgs#33646
    
    (The same kind of problem was fixed in RHEL a few years back:
    https://bugzilla.redhat.com/show_bug.cgi?id=1287940)
    
    (cherry picked from commit 4213e48)
    bjornfor committed Jun 16, 2019
    Copy the full SHA
    4f65275 View commit details
    Browse the repository at this point in the history
  4. nixos-generate-config: don't emit tmpfs entry for /tmp

    Because it most likely comes from the boot.tmpOnTmpfs option in
    configuration.nix (managed declaratively).
    
    (cherry picked from commit 8f551be)
    bjornfor committed Jun 16, 2019
    Copy the full SHA
    bfc68f7 View commit details
    Browse the repository at this point in the history