Unverified Commit 7f49ae65 authored by nikstur's avatar nikstur Committed by GitHub
Browse files

nixos/nixos-init: conflict with postBootCommands and powerUpCommands (#474454)

parents 3738754f e656d186
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -34,6 +34,14 @@ in
        assertion = config.services.userborn.enable || config.systemd.sysusers.enable;
        message = "nixos-init can only be used with services.userborn.enable or systemd.sysusers.enable";
      }
      {
        assertion = config.boot.postBootCommands == "";
        message = "nixos-init cannot be used with boot.postBootCommands";
      }
      {
        assertion = config.powerManagement.powerUpCommands == "";
        message = "nixos-init cannot be used with powerManagement.powerUpCommands";
      }
    ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
      boot.initrd.systemd.enable = true;
      system.etc.overlay.enable = true;
      services.userborn.enable = true;
      boot.postBootCommands = lib.mkForce "";

      system.nixos-init.enable = true;
      # Forcibly set this to only these specific values.