Updated the .gitignore to include machine-specific configurations and secrets handling. Expanded the DEPLOYMENT-GUIDE.md to provide detailed instructions for adding new machines using a template, along with steps for managing encrypted secrets. Introduced example configuration files for boot settings and a sample WireGuard service, improving modularity and flexibility in the NixOS deployment process. Adjusted krops.nix to reference the correct path for machine-specific configurations.
24 lines
639 B
Nix
24 lines
639 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Import shared configuration and machine-specific modules
|
|
imports = [
|
|
# Import shared.nix with your domain parameter
|
|
# Replace "example.com" with your actual domain
|
|
(import /var/src/config-shared {
|
|
inherit config pkgs;
|
|
domain = "example.com";
|
|
})
|
|
|
|
# Import hardware-specific configuration
|
|
# This file is typically generated by nixos-generate-config
|
|
./hardware-configuration.nix
|
|
|
|
# Import boot configuration (bootloader settings)
|
|
./boot.nix
|
|
|
|
# Import any machine-specific services
|
|
# Comment out or remove if not needed
|
|
# ./example-service.nix
|
|
];
|
|
}
|