Skip to content

Commit

Permalink
feat: tell flake and system to use elmer cachix and use elmer's overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
mk3z committed Aug 26, 2024
1 parent 936a95c commit 9016e8f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
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
13 changes: 12 additions & 1 deletion modules/elmer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ in
{
options.wsl.elmer.enable = mkEnableOption "ElmerFEM";
config = mkIf config.wsl.elmer.enable {
environment.systemPackages = [ inputs.elmer.packages.x86_64-linux.gui pkgs.mpi ];
nix.settings = {
extra-substituters = [
"https://elmerfem.cachix.org"
];
extra-trusted-public-keys = [
"elmerfem.cachix.org-1:nWIb5JzEzC2/W6qiuaC0urJRG+S7KvTn9WatX43gkHk="
];
};

nixpkgs.overlays = [ inputs.elmer.overlay ];

environment.systemPackages = with pkgs; [ elmer-gui mpi ];
};
}

0 comments on commit 9016e8f

Please sign in to comment.