added readme and comments for part 1
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -2,13 +2,19 @@
|
||||
description = "some config";
|
||||
|
||||
inputs = {
|
||||
# Latest stable nixpkgs
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||
|
||||
# Flake parts utils
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
};
|
||||
|
||||
# Default import-tree output
|
||||
outputs = inputs:
|
||||
inputs.flake-parts.lib.mkFlake {inherit inputs;}
|
||||
(inputs.import-tree ./modules);
|
||||
# Pass all inputs to outputs
|
||||
inputs.flake-parts.lib.mkFlake {
|
||||
# Call mkFlake from flake-parts module
|
||||
inherit inputs; # Inherit inputs (required to get correct arch for self')
|
||||
} (inputs.import-tree ./modules); # Pass in all modules using import-tree
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user