refactor: Make more modular and do some refactoring
This commit is contained in:
committed by
Hunter Halloran
parent
205f03337a
commit
01af38a5b9
20
installer/modules.nix
Normal file
20
installer/modules.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
# ============================================================================
|
||||
# Host Type Modules Export
|
||||
# ============================================================================
|
||||
# This file exposes each host type as a reusable NixOS module that can be
|
||||
# imported by external flakes or configurations.
|
||||
#
|
||||
# Usage in another flake:
|
||||
# inputs.nixos-systems.nixosModules.nix-desktop
|
||||
# inputs.nixos-systems.nixosModules.nix-laptop
|
||||
# etc.
|
||||
|
||||
{ inputs }:
|
||||
{
|
||||
nix-desktop = import ../hosts/types/nix-desktop.nix { inherit inputs; };
|
||||
nix-laptop = import ../hosts/types/nix-laptop.nix { inherit inputs; };
|
||||
nix-surface = import ../hosts/types/nix-surface.nix { inherit inputs; };
|
||||
nix-lxc = import ../hosts/types/nix-lxc.nix { inherit inputs; };
|
||||
nix-wsl = import ../hosts/types/nix-wsl.nix { inherit inputs; };
|
||||
nix-ephemeral = import ../hosts/types/nix-ephemeral.nix { inherit inputs; };
|
||||
}
|
||||
Reference in New Issue
Block a user