From 05f0c17b4a4d00611e69770a83b22bada5b89e83 Mon Sep 17 00:00:00 2001 From: Matias Zwinger Date: Mon, 26 Aug 2024 16:49:03 +0300 Subject: [PATCH] feat: tell flake and system to use elmer cachix --- flake.nix | 9 +++++++++ modules/elmer.nix | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/flake.nix b/flake.nix index af48796e..7dcea35b 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,15 @@ }; }; + nixConfig = { + extra-substituters = [ + "https://elmerfem.cachix.org" + ]; + extra-trusted-public-keys = [ + "elmerfem.cachix.org-1:nWIb5JzEzC2/W6qiuaC0urJRG+S7KvTn9WatX43gkHk=" + ]; + }; + outputs = inputs@{ self, nixpkgs, flake-utils, ... }: with nixpkgs.lib; { diff --git a/modules/elmer.nix b/modules/elmer.nix index 6774f6f1..eee44493 100644 --- a/modules/elmer.nix +++ b/modules/elmer.nix @@ -5,6 +5,15 @@ in { options.wsl.elmer.enable = mkEnableOption "ElmerFEM"; config = mkIf config.wsl.elmer.enable { + nix.settings = { + extra-substituters = [ + "https://elmerfem.cachix.org" + ]; + extra-trusted-public-keys = [ + "elmerfem.cachix.org-1:nWIb5JzEzC2/W6qiuaC0urJRG+S7KvTn9WatX43gkHk=" + ]; + }; + environment.systemPackages = [ inputs.elmer.packages.x86_64-linux.gui pkgs.mpi ]; }; }