Skip to content

Commit

Permalink
feat: tell flake and system to use elmer cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
mk3z committed Aug 27, 2024
1 parent 936a95c commit 05f0c17
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
{
Expand Down
9 changes: 9 additions & 0 deletions modules/elmer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
};
}

0 comments on commit 05f0c17

Please sign in to comment.