Skip to content

feat: add nixos-deploy module#3

Merged
megheaiulian merged 2 commits into
mainfrom
add-nixos-deploy
Mar 12, 2026
Merged

feat: add nixos-deploy module#3
megheaiulian merged 2 commits into
mainfrom
add-nixos-deploy

Conversation

@megheaiulian

Copy link
Copy Markdown
Contributor

Summary

All-in-one module combining nix-drv, nixos-rebuild, and optional sops-deploy for deploying NixOS configurations.

Usage

module "deploy" {
  source      = "git::https://github.com/plumelo/nixtf.git//modules/nixos-deploy"
  attribute   = ".#nixosConfigurations.myhost"
  target_host = "192.168.1.100"
  sops_file   = "${path.module}/sops.yaml"  # optional
}

Dependencies

Requires #2 (sops-deploy) to be merged first.

Combines nix-drv, nixos-rebuild, and optional sops-deploy into
a single convenient module for deploying NixOS configurations.

- Derivation evaluation with optional unfree packages
- NixOS remote deployment via SSH
- Optional sops secrets deployment
- Automatic trigger chaining
@megheaiulian megheaiulian merged commit d608531 into main Mar 12, 2026
@megheaiulian megheaiulian deleted the add-nixos-deploy branch March 12, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant