2024-07-03 13:05:25 -05:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
self,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (builtins) filter;
|
|
|
|
inherit (lib)
|
|
|
|
nixosSystem
|
|
|
|
isNixFile
|
|
|
|
mkDefaultOizysModule
|
|
|
|
mkOizysModule
|
|
|
|
enabled
|
|
|
|
enableAttrs
|
|
|
|
;
|
|
|
|
inherit (lib.filesystem) listFilesRecursive;
|
|
|
|
|
|
|
|
mkIso = nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
self.nixosModules.nix
|
|
|
|
self.nixosModules.essentials
|
|
|
|
(
|
2024-07-10 13:06:28 -05:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2024-07-03 13:05:25 -05:00
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
|
2024-07-10 13:06:28 -05:00
|
|
|
environment.systemPackages = (with pkgs; [ neovim ]) ++ [ self.packages.${pkgs.system}.default ];
|
2024-07-03 13:05:25 -05:00
|
|
|
}
|
|
|
|
)
|
|
|
|
];
|
2024-07-07 14:32:46 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
lib
|
|
|
|
self
|
|
|
|
enabled
|
|
|
|
;
|
|
|
|
};
|
2024-07-03 13:05:25 -05:00
|
|
|
};
|
2024-07-10 13:06:28 -05:00
|
|
|
|
2024-07-03 13:05:25 -05:00
|
|
|
mkSystem =
|
|
|
|
hostName:
|
|
|
|
nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
../modules/oizys.nix
|
|
|
|
../overlays
|
|
|
|
inputs.lix-module.nixosModules.default
|
|
|
|
inputs.hyprland.nixosModules.default
|
|
|
|
] ++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostName}"));
|
|
|
|
specialArgs = {
|
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
lib
|
|
|
|
self
|
|
|
|
mkDefaultOizysModule
|
|
|
|
mkOizysModule
|
|
|
|
enabled
|
|
|
|
enableAttrs
|
|
|
|
hostName
|
|
|
|
;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit mkIso mkSystem;
|
|
|
|
}
|