add restruct2

This commit is contained in:
cnst
2024-06-28 15:09:29 +02:00
parent 82a4545886
commit f06e9e9fad
19 changed files with 198 additions and 205 deletions

View File

@@ -27,50 +27,45 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# Home manager
};
outputs =
{
self,
nixpkgs,
home-manager,
systems,
solaar,
...
}@inputs:
let
inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib;
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
pkgsFor = lib.genAttrs (import systems) (
system:
outputs = {
self,
nixpkgs,
home-manager,
systems,
solaar,
...
} @ inputs: let
inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib;
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
pkgsFor = lib.genAttrs (import systems) (
system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
}
);
in
{
inherit lib;
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
);
in {
inherit lib;
formatter = forEachSystem (pkgs: pkgs.alejandra);
nixosConfigurations = {
cnix = lib.nixosSystem {
modules = [
./hosts/cnix
# solaar.nixosModules.default
];
specialArgs = {
inherit inputs outputs;
};
nixosConfigurations = {
cnix = lib.nixosSystem {
modules = [
./hosts/cnix
# solaar.nixosModules.default
];
specialArgs = {
inherit inputs outputs;
};
adampad = lib.nixosSystem {
modules = [ ./hosts/adampad ];
specialArgs = {
inherit inputs outputs;
};
};
adampad = lib.nixosSystem {
modules = [./hosts/adampad];
specialArgs = {
inherit inputs outputs;
};
};
};
};
}