OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
HASH      3c7d27db432a
DATE      2025-10-27
SUBJECT   lib: deprecate builder function
FILES     2 CHANGED
HASH      3c7d27db432a
DATE      2025-10-27
SUBJECT   lib: deprecate builder function
FILES     2 CHANGED
 

diff --git a/outputs/lib/builders.nix b/outputs/lib/builders.nix
deleted file mode 100644
index c751b52..0000000
--- a/outputs/lib/builders.nix
+++ /dev/null
@@ -1,208 +0,0 @@
-{
-  lib,
-  inputs,
-  self,
-  ...
-}: let
-  inherit (inputs) nixpkgs;
-  inherit (lib) assertMsg singleton mkDefault;
-  inherit (builtins) concatLists;
-  inherit (self) hozen ook;
-  inherit (inputs.secrets.nixosModules) nixosSecrets;
-  inherit (inputs.secrets.nixosModules) darwinSecrets;
-  inherit (inputs.disko.nixosModules) disko;
-
-  nixosModules = "${self}/modules/nixos";
-  commonModules = "${self}/modules/common";
-  hostModules = "${self}/hosts";
-  options = "${self}/modules/options";
-
-  nixos-hm = inputs.home-manager.nixosModules.home-manager;
-  darwin-hm = inputs.home-manager.darwinModules.home-manager;
-
-  nixos = {
-    base = nixosModules + "/base";
-    hardware = nixosModules + "/hardware";
-    server = nixosModules + "/server";
-    image = nixosModules + "/image";
-    workstation = nixosModules + "/workstation";
-    virtualization = nixosModules + "/virtualization";
-  };
-  common = {
-    base = commonModules + "/base";
-    workstation = commonModules + "/workstation";
-    console = commonModules + "/console";
-  };
-  darwin = "${self}/modules/darwin";
-
-  nixosMinimal = [
-    options
-    (common.base + "/admin.nix")
-    (nixos.base + "/openssh.nix")
-  ];
-
-  core = [
-    options
-    common.base
-    common.console
-  ];
-
-  nixosCore =
-    core
-    ++ [
-      nixos.base
-      nixos.hardware
-      nixos.virtualization
-      nixos-hm
-      nixosSecrets
-      disko
-    ];
-
-  darwinCore =
-    core
-    ++ [
-      darwin
-      darwin-hm
-      darwinSecrets
-    ];
-
-  isoModules = [
-    nixosSecrets
-    (nixos.image + "/isoImage.nix")
-    (nixos.base + "/networking.nix")
-    (nixos.base + "/tailscale.nix")
-    (common.base + "/nix.nix")
-    (common.base + "/sudo.nix")
-  ];
-
-  mkBaseSystem = {
-    withSystem,
-    hostname,
-    system,
-    type,
-    role,
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    withSystem system ({
-      inputs',
-      self',
-      ...
-    }: let
-      mkSystem =
-        if system == "aarch64-darwin"
-        then inputs.nix-darwin.lib.darwinSystem
-        else nixpkgs.lib.nixosSystem;
-    in
-      mkSystem {
-        specialArgs = {
-          inherit hozen ook inputs self inputs' self';
-        };
-        modules = concatLists [
-          (singleton {
-            networking.hostName = hostname;
-            nixpkgs = {
-              flake.source = nixpkgs.outPath;
-              hostPlatform = mkDefault system;
-            };
-            ooknet.host = {
-              name = hostname;
-              inherit role type;
-            };
-          })
-          additionalModules
-        ];
-      });
-
-  mkWorkstation = {
-    withSystem,
-    hostname,
-    system,
-    type,
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    mkBaseSystem {
-      inherit withSystem hostname system type specialArgs;
-      role = "workstation";
-      additionalModules = let
-        platformModules =
-          if (system == "aarch64-darwin")
-          then darwinCore ++ [common.workstation]
-          else nixosCore ++ [nixos.workstation common.workstation];
-      in
-        concatLists [
-          platformModules
-          [(hostModules + "/${hostname}")]
-          additionalModules
-        ];
-    };
-
-  mkServer = {
-    withSystem,
-    hostname,
-    system,
-    type,
-    services,
-    profile ? null,
-    domain ? "",
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    assert assertMsg (!(type == "vm" && profile == null))
-    "Profile must be specified for VM servers";
-      mkBaseSystem {
-        inherit withSystem hostname system type specialArgs;
-        role = "server";
-        additionalModules = concatLists [
-          (singleton {
-            ooknet.server = {
-              inherit domain services;
-            };
-          })
-          nixosCore
-          (
-            if type == "vm"
-            then [(hostModules + "/${profile}")]
-            else [(hostModules + "/${hostname}")]
-          )
-          [nixos.server]
-          additionalModules
-        ];
-      };
-
-  mkImage = {
-    withSystem,
-    hostname,
-    system,
-    profile ? null,
-    type,
-    role,
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    mkBaseSystem {
-      inherit withSystem role hostname system type specialArgs;
-      additionalModules = concatLists [
-        nixosMinimal
-        additionalModules
-        (
-          if type == "iso"
-          then isoModules
-          else []
-        )
-        (
-          if role == "installer"
-          then [(nixos.image + "/installer.nix")]
-          else []
-        )
-        (
-          if profile != null
-          then [(hostModules + "/${profile}")]
-          else [(hostModules + "/${hostname}")]
-        )
-      ];
-    };
-in {
-  inherit mkServer mkWorkstation mkImage;
-}

diff --git a/outputs/lib/builders.nix b/outp
uts/lib/builders.nix
deleted file mode 100644
index c751b52..0000000
--- a/outputs/lib/builders.nix
+++ /dev/null
@@ -1,208 +0,0 @@
-{
-  lib,
-  inputs,
-  self,
-  ...
-}: let
-  inherit (inputs) nixpkgs;
-  inherit (lib) assertMsg singleton mkDefau
lt;
-  inherit (builtins) concatLists;
-  inherit (self) hozen ook;
-  inherit (inputs.secrets.nixosModules) nix
osSecrets;
-  inherit (inputs.secrets.nixosModules) dar
winSecrets;
-  inherit (inputs.disko.nixosModules) disko
;
-
-  nixosModules = "${self}/modules/nixos";
-  commonModules = "${self}/modules/common";
-  hostModules = "${self}/hosts";
-  options = "${self}/modules/options";
-
-  nixos-hm = inputs.home-manager.nixosModul
es.home-manager;
-  darwin-hm = inputs.home-manager.darwinMod
ules.home-manager;
-
-  nixos = {
-    base = nixosModules + "/base";
-    hardware = nixosModules + "/hardware";
-    server = nixosModules + "/server";
-    image = nixosModules + "/image";
-    workstation = nixosModules + "/workstat
ion";
-    virtualization = nixosModules + "/virtu
alization";
-  };
-  common = {
-    base = commonModules + "/base";
-    workstation = commonModules + "/worksta
tion";
-    console = commonModules + "/console";
-  };
-  darwin = "${self}/modules/darwin";
-
-  nixosMinimal = [
-    options
-    (common.base + "/admin.nix")
-    (nixos.base + "/openssh.nix")
-  ];
-
-  core = [
-    options
-    common.base
-    common.console
-  ];
-
-  nixosCore =
-    core
-    ++ [
-      nixos.base
-      nixos.hardware
-      nixos.virtualization
-      nixos-hm
-      nixosSecrets
-      disko
-    ];
-
-  darwinCore =
-    core
-    ++ [
-      darwin
-      darwin-hm
-      darwinSecrets
-    ];
-
-  isoModules = [
-    nixosSecrets
-    (nixos.image + "/isoImage.nix")
-    (nixos.base + "/networking.nix")
-    (nixos.base + "/tailscale.nix")
-    (common.base + "/nix.nix")
-    (common.base + "/sudo.nix")
-  ];
-
-  mkBaseSystem = {
-    withSystem,
-    hostname,
-    system,
-    type,
-    role,
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    withSystem system ({
-      inputs',
-      self',
-      ...
-    }: let
-      mkSystem =
-        if system == "aarch64-darwin"
-        then inputs.nix-darwin.lib.darwinSy
stem
-        else nixpkgs.lib.nixosSystem;
-    in
-      mkSystem {
-        specialArgs = {
-          inherit hozen ook inputs self inp
uts' self';
-        };
-        modules = concatLists [
-          (singleton {
-            networking.hostName = hostname;
-            nixpkgs = {
-              flake.source = nixpkgs.outPat
h;
-              hostPlatform = mkDefault syst
em;
-            };
-            ooknet.host = {
-              name = hostname;
-              inherit role type;
-            };
-          })
-          additionalModules
-        ];
-      });
-
-  mkWorkstation = {
-    withSystem,
-    hostname,
-    system,
-    type,
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    mkBaseSystem {
-      inherit withSystem hostname system ty
pe specialArgs;
-      role = "workstation";
-      additionalModules = let
-        platformModules =
-          if (system == "aarch64-darwin")
-          then darwinCore ++ [common.workst
ation]
-          else nixosCore ++ [nixos.workstat
ion common.workstation];
-      in
-        concatLists [
-          platformModules
-          [(hostModules + "/${hostname}")]
-          additionalModules
-        ];
-    };
-
-  mkServer = {
-    withSystem,
-    hostname,
-    system,
-    type,
-    services,
-    profile ? null,
-    domain ? "",
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    assert assertMsg (!(type == "vm" && pro
file == null))
-    "Profile must be specified for VM serve
rs";
-      mkBaseSystem {
-        inherit withSystem hostname system 
type specialArgs;
-        role = "server";
-        additionalModules = concatLists [
-          (singleton {
-            ooknet.server = {
-              inherit domain services;
-            };
-          })
-          nixosCore
-          (
-            if type == "vm"
-            then [(hostModules + "/${profil
e}")]
-            else [(hostModules + "/${hostna
me}")]
-          )
-          [nixos.server]
-          additionalModules
-        ];
-      };
-
-  mkImage = {
-    withSystem,
-    hostname,
-    system,
-    profile ? null,
-    type,
-    role,
-    additionalModules ? [],
-    specialArgs ? {},
-  }:
-    mkBaseSystem {
-      inherit withSystem role hostname syst
em type specialArgs;
-      additionalModules = concatLists [
-        nixosMinimal
-        additionalModules
-        (
-          if type == "iso"
-          then isoModules
-          else []
-        )
-        (
-          if role == "installer"
-          then [(nixos.image + "/installer.
nix")]
-          else []
-        )
-        (
-          if profile != null
-          then [(hostModules + "/${profile}
")]
-          else [(hostModules + "/${hostname
}")]
-        )
-      ];
-    };
-in {
-  inherit mkServer mkWorkstation mkImage;
-}
 

diff --git a/outputs/lib/default.nix b/outputs/lib/default.nix
index 3991faf..d29bede 100644
--- a/outputs/lib/default.nix
+++ b/outputs/lib/default.nix
@@ -1,13 +1,10 @@
 {
   lib,
-  self,
-  inputs,
   config,
   ...
 }: let
   # my scuffed lib
   ook-lib = {
-    builders = import ./builders.nix {inherit self lib inputs;};
     math = import ./math.nix {inherit lib;};
     container = import ./containers.nix {inherit lib config;};
     services = import ./services.nix {inherit lib;};

diff --git a/outputs/lib/default.nix b/outpu
ts/lib/default.nix
index 3991faf..d29bede 100644
--- a/outputs/lib/default.nix
+++ b/outputs/lib/default.nix
@@ -1,13 +1,10 @@
 {
   lib,
-  self,
-  inputs,
   config,
   ...
 }: let
   # my scuffed lib
   ook-lib = {
-    builders = import ./builders.nix {inher
it self lib inputs;};
     math = import ./math.nix {inherit lib;}
;
     container = import ./containers.nix {in
herit lib config;};
     services = import ./services.nix {inher
it lib;};
 
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET