flake: move old let
block to config.flake scope
This commit is contained in:
parent
c7d841b3e8
commit
b8e37d3eeb
26
flake.nix
26
flake.nix
@ -117,7 +117,19 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
} @ flakeArgs: let
|
} @ flakeArgs: {
|
||||||
|
# flake-parts imports
|
||||||
|
imports = [
|
||||||
|
./flake
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
# flake-parts systems (still uses nix-systems)
|
||||||
|
systems = import inputs.systems;
|
||||||
|
|
||||||
|
debug = lib.mkDefault true;
|
||||||
|
|
||||||
|
flake = let
|
||||||
# {{{
|
# {{{
|
||||||
inherit (inputs) nixpkgs nixpkgs-unstable;
|
inherit (inputs) nixpkgs nixpkgs-unstable;
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
@ -407,18 +419,6 @@
|
|||||||
["system" "nixpkgs" "home-manager" "modules" "username" "homeDirectory" "stateVersion" "entrypoint" "config"]);
|
["system" "nixpkgs" "home-manager" "modules" "username" "homeDirectory" "stateVersion" "entrypoint" "config"]);
|
||||||
# }}}
|
# }}}
|
||||||
in {
|
in {
|
||||||
# flake-parts imports
|
|
||||||
imports = [
|
|
||||||
./flake
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
# flake-parts systems (still uses nix-systems)
|
|
||||||
systems = import inputs.systems;
|
|
||||||
|
|
||||||
debug = lib.mkDefault true;
|
|
||||||
|
|
||||||
flake = {
|
|
||||||
# for repl debugging via :lf .
|
# for repl debugging via :lf .
|
||||||
inherit inputs vars;
|
inherit inputs vars;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user