force refresh on recreate-lock-file

This commit is contained in:
Sean Buckley 2021-04-09 00:50:28 -04:00
parent faa0bd1b27
commit 4c1a6c264e

View file

@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.flakes;
upgradeArg = if cfg.rebuildPath == "/etc/nixos" then "--recreate-lock-file" else "--refresh";
upgradeArg = if cfg.rebuildPath == "/etc/nixos" then "--refresh --recreate-lock-file" else "--refresh";
in
{
options.sconfig.flakes = {