add: flake overlay

This commit is contained in:
ooks-io 2023-08-21 13:36:01 +12:00
parent 16c960a1d6
commit 4d90b97c9d
2 changed files with 9 additions and 1 deletions

View file

@ -20,8 +20,8 @@
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
systems = [ "x86_64-linux" "aarch64-linux" ];
lib = nixpkgs.lib // home-manager.lib;
systems = [ "x86_64-linux" "aarch64-linux" ];
forEachSystem = f: lib.genAttrs systems (sys: f pkgsFor.${sys});
pkgsFor = nixpkgs.legacyPackages;
in
@ -30,8 +30,11 @@
homeManagerModules = import ./modules/home-manager;
overlays = import ./overlays { inherit inputs outputs; };
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
nixosConfigurations = {
# X1 Carbon

5
overlays/default.nix Normal file
View file

@ -0,0 +1,5 @@
{ inputs, ... }:
{
additions = final: _prev: import ../pkgs { pkgs = final; };
}