aboutsummaryrefslogtreecommitdiff
path: root/system/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system/nix.nix')
-rw-r--r--system/nix.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/system/nix.nix b/system/nix.nix
new file mode 100644
index 0000000..ef92dc1
--- /dev/null
+++ b/system/nix.nix
@@ -0,0 +1,32 @@
+{pkgs, ...}: {
+ nix = {
+ package = pkgs.lixPackageSets.stable.lix;
+
+ settings = {
+ substituters = [
+ "https://cache.lix.systems"
+ "https://cache.nixos.org/"
+ ];
+
+ trusted-public-keys = [
+ "cache.lix.systems-1:32QFpmvZsbQ8HhH3dBHDx1E8zFGbxqMNxjE2Rk5OGcQ="
+ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
+ ];
+
+ experimental-features = ["nix-command" "flakes"];
+ };
+ };
+
+ # Fix nixpkgs.overlays for Lix compatibility
+ nixpkgs.overlays = [
+ (final: prev: {
+ inherit
+ (prev.lixPackageSets.stable)
+ nixpkgs-review
+ nix-eval-jobs
+ nix-fast-build
+ colmena
+ ;
+ })
+ ];
+}