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 ];