force experimental flake eval by default

This commit is contained in:
Sakooooo 2024-12-27 16:04:32 +04:00
parent 91aa0d10a8
commit c40f8fe10f
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 16 additions and 0 deletions

View file

@ -129,6 +129,7 @@
tree # trees
ripgrep # better grep may help later
inputs.agenix.packages.${system}.default
colmena
];
age.secretsDir = "/run/secrets";

View file

@ -0,0 +1,13 @@
diff --git a/src/cli.rs b/src/cli.rs
index 9068da6..76b63e3 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -139,7 +139,7 @@ This only works when building locally.
nix_option: Vec<String>,
#[arg(
long,
- default_value_t,
+ default_value_t = true,
help = "Use direct flake evaluation (experimental)",
long_help = r#"If enabled, flakes will be evaluated using `nix eval`. This requires the flake to depend on Colmena as an input and expose a compatible `colmenaHive` output:

View file

@ -27,6 +27,8 @@
++ [ inputs.nixpkgs.legacyPackages.x86_64-linux.libdbusmenu-gtk3 ];
});
isync = prev.isync.overrideAttrs (old: { withCyrusSaslXoauth2 = true; });
colmena = inputs.colmena.packages.x86_64-linux.colmena.overrideAttrs
(old: { patches = old.patches or [ ] ++ [ ./colmena-eval.diff ]; });
};
# incase something breaks