- Add import-tree input; flake.nix now auto-loads every file under ./flake-modules so new hosts/features drop in without editing flake.nix. - Extract the duplicated dotfiles-rebuild service, timer, and safe.directory wiring into nixos/modules/dotfiles-rebuild.nix, exposed via flake.nixosModules.dotfiles-rebuild. - sunken-ship and phantom-ship now pull it in from their flake-modules; hostname-specific flakeRef is derived from config.networking.hostName.
7 lines
250 B
Nix
7 lines
250 B
Nix
# Expose reusable NixOS modules via `flake.nixosModules`.
|
|
#
|
|
# Consume from a host's flake-module via:
|
|
# modules = [ config.flake.nixosModules.dotfiles-rebuild ];
|
|
{ ... }: {
|
|
flake.nixosModules.dotfiles-rebuild = ../modules/dotfiles-rebuild.nix;
|
|
}
|