lib: trying to extend the default NixOS library, NOT WORKING ATM

This commit is contained in:
Charlie Root 2024-08-30 20:11:05 +02:00
commit 08d7bc266b
3 changed files with 44 additions and 40 deletions

View file

@ -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 {