mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -06:00
remove noop functions and add devshell
This commit is contained in:
parent
4a8eb8bf0b
commit
4b8b1718a4
1 changed files with 22 additions and 14 deletions
|
@ -15,15 +15,7 @@
|
||||||
in rec {
|
in rec {
|
||||||
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
|
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
|
||||||
|
|
||||||
buildOizys = _:
|
nixosModules = listToAttrs (findModulesList ../modules);
|
||||||
forAllSystems (
|
|
||||||
pkgs: let
|
|
||||||
pkg = pkgs.callPackage ../oizys {};
|
|
||||||
in {
|
|
||||||
oizys = pkg;
|
|
||||||
default = pkg;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
mkSystem = hostname:
|
mkSystem = hostname:
|
||||||
nixosSystem {
|
nixosSystem {
|
||||||
|
@ -39,13 +31,29 @@ in rec {
|
||||||
|
|
||||||
specialArgs = {inherit inputs lib self;};
|
specialArgs = {inherit inputs lib self;};
|
||||||
};
|
};
|
||||||
mapHosts = dir: mapAttrs (name: _: mkSystem name) (readDir dir);
|
|
||||||
findModules = _: listToAttrs (findModulesList ../modules);
|
oizysHosts = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
|
||||||
|
oizysPkg = forAllSystems (
|
||||||
|
pkgs: let
|
||||||
|
pkg = pkgs.callPackage ../oizys {};
|
||||||
|
in {
|
||||||
|
oizys = pkg;
|
||||||
|
default = pkg;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
devShells = forAllSystems (
|
||||||
|
pkgs: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [git deadnix];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
oizysFlake = _: {
|
oizysFlake = _: {
|
||||||
nixosModules = findModules {};
|
nixosModules = nixosModules;
|
||||||
nixosConfigurations = mapHosts ../hosts;
|
nixosConfigurations = oizysHosts;
|
||||||
packages = buildOizys {};
|
packages = oizysPkg;
|
||||||
|
devShells = devShells;
|
||||||
formatter = forAllSystems (pkgs: pkgs.alejandra);
|
formatter = forAllSystems (pkgs: pkgs.alejandra);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue