Skip to content

Commit

Permalink
Add withRepart=false; to systemd override
Browse files Browse the repository at this point in the history
Conditionally add withRepart=false; to systemd override. When building
against nixos-unstable, fixes:
`error: assertion '(withRepart -> withCryptsetup)' failed`

Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi authored and brianmcgillion committed Oct 2, 2023
1 parent f3ef261 commit 9c12494
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,22 @@
# TODO remove this when the minimal config is defined
appstream.enable = false;

systemd.package = pkgs.systemd.override {
withCryptsetup = false;
withDocumentation = false;
withFido2 = false;
withHomed = false;
withHwdb = false;
withLibBPF = true;
withLocaled = false;
withPCRE2 = false;
withPortabled = false;
withTpm2Tss = false;
withUserDb = false;
};
systemd.package = pkgs.systemd.override ({
withCryptsetup = false;
withDocumentation = false;
withFido2 = false;
withHomed = false;
withHwdb = false;
withLibBPF = true;
withLocaled = false;
withPCRE2 = false;
withPortabled = false;
withTpm2Tss = false;
withUserDb = false;
}
// lib.optionalAttrs (lib.hasAttr "withRepart" (lib.functionArgs pkgs.systemd.override)) {
withRepart = false;
});

boot.enableContainers = false;
##### Remove to here
Expand Down

0 comments on commit 9c12494

Please sign in to comment.