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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 502a4263a34a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: af5909a27258
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 7, 2019

  1. nixos/auto-upgrade: enable service only when it's enabled in options (#…

    …56948)
    
    * nixos/auto-upgrade: enable service only when it's enabled in options
    
    This reduced closure size of `tinyContainer` from 449 MB to 403 MB
    danbst authored Mar 7, 2019
    Copy the full SHA
    af5909a View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 nixos/modules/tasks/auto-upgrade.nix
4 changes: 2 additions & 2 deletions nixos/modules/tasks/auto-upgrade.nix
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ let cfg = config.system.autoUpgrade; in

};

config = {
config = lib.mkIf cfg.enable {

system.autoUpgrade.flags =
[ "--no-build-output" ]
@@ -84,7 +84,7 @@ let cfg = config.system.autoUpgrade; in
${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}
'';

startAt = optional cfg.enable cfg.dates;
startAt = cfg.dates;
};

};