lib: trying to extend the default NixOS library, NOT WORKING ATM
This commit is contained in:
parent
9f04781dce
commit
08d7bc266b
3 changed files with 44 additions and 40 deletions
|
@ -1,35 +1,36 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
withSystem,
|
||||
...
|
||||
}: let
|
||||
# inherit (inputs) self;
|
||||
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 (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