mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-10 00:43:15 -06:00
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{
|
|
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
|
|
(
|
|
{
|
|
self,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
|
|
environment.systemPackages = (with pkgs; [ neovim ]) ++ [ self.packages.${pkgs.system}.default ];
|
|
}
|
|
)
|
|
];
|
|
specialArgs = {
|
|
inherit
|
|
inputs
|
|
lib
|
|
self
|
|
enabled
|
|
;
|
|
};
|
|
};
|
|
|
|
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;
|
|
}
|