Adding foundry

This commit is contained in:
Miguel Palhas
2024-10-04 17:51:23 +01:00
parent 876a002af6
commit 7ab89c1f28
3 changed files with 8 additions and 7 deletions
+5 -3
View File
@@ -33,17 +33,19 @@
utils.url = "github:numtide/flake-utils";
};
outputs = { self, systems, nixpkgs, home-manager, utils, catppuccin, foundry
, ... }@inputs:
outputs =
{ self, systems, nixpkgs, home-manager, utils, catppuccin, ... }@inputs:
let
inherit (self) outputs;
pkgsFor = nixpkgs.lib.genAttrs (import systems) (system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ inputs.foundry.overlay ];
});
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
forEachPkg = f: forEachSystem (sys: f nixpkgs.legacyPackages.${sys});
forEachPkg = f: forEachSystem (sys: f pkgsFor.${sys});
mkNixOS = name:
nixpkgs.lib.nixosSystem {
modules = [ ./hosts/${name} catppuccin.nixosModules.catppuccin ];
+1 -2
View File
@@ -1,5 +1,4 @@
{ inputs, pkgs, foundry, ... }: {
# home.packages = [ pkgs.foundry-bin pkgs.solc ];
home.packages = with pkgs; [ foundry-bin solc ];
programs = { gh.enable = true; };
}
+2 -2
View File
@@ -1,6 +1,6 @@
{ pkgs ? (import ./nixpgs.nix) { } }: {
{ pkgs }: {
default = pkgs.mkShell {
NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = with pkgs; [ nix home-manager git ];
nativeBuildInputs = with pkgs; [ nix home-manager git foundry-bin solc ];
};
}