hmm
This commit is contained in:
parent
a1920f771c
commit
c8d762ee59
3 changed files with 16 additions and 33 deletions
20
flake.nix
20
flake.nix
|
|
@ -16,25 +16,13 @@
|
|||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
systems,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (self) outputs;
|
||||
myLib = import ./myLib/default.nix {inherit self inputs;};
|
||||
in
|
||||
with myLib; {
|
||||
inherit lib;
|
||||
|
||||
# copied from https://github.com/Misterio77/nix-config/blob/main/flake.nix
|
||||
lib = nixpkgs.lib // home-manager.lib;
|
||||
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
|
||||
pkgsFor = lib.genAttrs (import systems) (
|
||||
system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
}
|
||||
);
|
||||
in {
|
||||
with myLib;
|
||||
formatter = forEachSystem (pkgs: pkgs.alejandra);
|
||||
|
||||
homeManagerModules.default = ./modules/home-manager;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue