restructuring

This commit is contained in:
cnst
2024-06-23 13:18:58 +02:00
parent b2aec1af0d
commit cdf2b9771c
22 changed files with 300 additions and 893 deletions

View File

@@ -21,36 +21,41 @@
inputs.nixpkgs.follows = "nixpkgs";
};
};
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 {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
cnix = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
solaar.nixosModules.default
./nixos/configuration.nix
];
);
in
{
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
cnix = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs outputs;
};
# > Our main nixos configuration file <
modules = [
solaar.nixosModules.default
./nixos/configuration.nix
];
};
};
};
};
}