Adding foundry
This commit is contained in:
@@ -33,17 +33,19 @@
|
|||||||
utils.url = "github:numtide/flake-utils";
|
utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, systems, nixpkgs, home-manager, utils, catppuccin, foundry
|
outputs =
|
||||||
, ... }@inputs:
|
{ self, systems, nixpkgs, home-manager, utils, catppuccin, ... }@inputs:
|
||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
pkgsFor = nixpkgs.lib.genAttrs (import systems) (system:
|
pkgsFor = nixpkgs.lib.genAttrs (import systems) (system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = [ inputs.foundry.overlay ];
|
||||||
});
|
});
|
||||||
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
||||||
forEachPkg = f: forEachSystem (sys: f nixpkgs.legacyPackages.${sys});
|
forEachPkg = f: forEachSystem (sys: f pkgsFor.${sys});
|
||||||
|
|
||||||
mkNixOS = name:
|
mkNixOS = name:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
modules = [ ./hosts/${name} catppuccin.nixosModules.catppuccin ];
|
modules = [ ./hosts/${name} catppuccin.nixosModules.catppuccin ];
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ inputs, pkgs, foundry, ... }: {
|
{ inputs, pkgs, foundry, ... }: {
|
||||||
# home.packages = [ pkgs.foundry-bin pkgs.solc ];
|
home.packages = with pkgs; [ foundry-bin solc ];
|
||||||
|
|
||||||
programs = { gh.enable = true; };
|
programs = { gh.enable = true; };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ pkgs ? (import ./nixpgs.nix) { } }: {
|
{ pkgs }: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
nativeBuildInputs = with pkgs; [ nix home-manager git ];
|
nativeBuildInputs = with pkgs; [ nix home-manager git foundry-bin solc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user