lib: still not working, progress
This commit is contained in:
parent
eebe309328
commit
a80d021d34
2 changed files with 34 additions and 35 deletions
|
@ -4,33 +4,33 @@
|
|||
withSystem,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) self;
|
||||
inherit (inputs.nixpkgs) lib;
|
||||
# inherit (lib.builders) mkSystem;
|
||||
mkSystem = {
|
||||
withSystem,
|
||||
system,
|
||||
...
|
||||
} @ args:
|
||||
withSystem system (
|
||||
{
|
||||
inputs',
|
||||
self',
|
||||
...
|
||||
}:
|
||||
lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs =
|
||||
lib.recursiveUpdate
|
||||
{
|
||||
inherit lib;
|
||||
inherit inputs inputs';
|
||||
inherit self self';
|
||||
}
|
||||
(args.specialArgs or {});
|
||||
inherit (args) modules;
|
||||
}
|
||||
);
|
||||
# inherit (inputs) self;
|
||||
# inherit (inputs.nixpkgs) lib;
|
||||
inherit (lib.builders) mkSystem;
|
||||
# mkSystem = {
|
||||
# withSystem,
|
||||
# system,
|
||||
# ...
|
||||
# } @ args:
|
||||
# withSystem system (
|
||||
# {
|
||||
# inputs',
|
||||
# self',
|
||||
# ...
|
||||
# }:
|
||||
# lib.nixosSystem {
|
||||
# inherit system;
|
||||
# specialArgs =
|
||||
# lib.recursiveUpdate
|
||||
# {
|
||||
# inherit lib;
|
||||
# inherit inputs inputs';
|
||||
# inherit self self';
|
||||
# }
|
||||
# (args.specialArgs or {});
|
||||
# inherit (args) modules;
|
||||
# }
|
||||
# );
|
||||
in {
|
||||
flake.nixosConfigurations = {
|
||||
temperance = mkSystem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue