summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-29 00:05:54 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-29 00:05:54 +0100
commit71396b89582bc0ccb067dd076959978b17925b79 (patch)
treeef76781afd5cd072e00984ce46e51fe5f606ea35
parentpkgs/rollup: Support parsing mode only changes (diff)
downloadnixos-config-71396b89582bc0ccb067dd076959978b17925b79.zip
flake.nix: Only add the rollup binary if it actually exists
-rw-r--r--flake.nix34
1 files changed, 21 insertions, 13 deletions
diff --git a/flake.nix b/flake.nix
index 643626f2..da8ce213 100644
--- a/flake.nix
+++ b/flake.nix
@@ -123,23 +123,31 @@
formatter."${system}" = treefmtEval.config.build.wrapper;
devShells."${system}".default = packageSets.unstable.mkShell {
- packages = [
- packageSets.unstable.deploy-rs
+ packages =
+ [
+ packageSets.unstable.deploy-rs
- # Used to update the stalwart-mail spamfilter
- packageSets.unstable.nix-update
+ # Used to update the stalwart-mail spamfilter
+ packageSets.unstable.nix-update
- packageSets.unstable.nvd
+ packageSets.unstable.nvd
- (sources.agenix.packages."${system}".default.override {
- nix = packageSets.unstable.lixPackageSets.latest.lix;
- })
+ (sources.agenix.packages."${system}".default.override {
+ nix = packageSets.unstable.lixPackageSets.latest.lix;
+ })
- # Development of local stuff
- packageSets.unstable.python3
- packageSets.unstable.cargo
- packageSets.unstable.cargo-edit
- ];
+ # Development of local stuff
+ packageSets.unstable.python3
+ packageSets.unstable.cargo
+ packageSets.unstable.cargo-edit
+ ]
+ ++ (
+ if packageSets.in_tree ? rollup
+ then [
+ packageSets.in_tree.rollup
+ ]
+ else []
+ );
};
deploy.nodes = hosts.nodes;