Files
nixos-core/flake.nix
T
kiskaadee 1a50c8a668 feat(nixos): scaffold declarative NixOS appliance for homelab server
Phase 1 & 2 of the homelab-core NixOS migration plan.

Adds a fully standalone NixOS flake configuration targeting the
roadtotech.me homelab server. Goal: wipe & restore from any bare
NixOS install via `nixos-install --flake ~/Core#server`.

Changes:
- flake.nix: 2-input flake (nixpkgs channel tarball + sops-nix)
- flake.lock: generated lockfile pinning nixos-26.11pre1070770.8ce4ef6
- .sops.yaml: SOPS rules scoped to nixos/secrets.yaml (server + laptop keys)
- nixos/configuration.nix: clean standalone config; no HM, no desktop
  inheritance, no lib.mkForce; headless-optimised; SOPS set exactly once
- nixos/hardware-configuration.nix: copied from Config/hosts/server/
- nixos/secrets.yaml: copied SOPS-encrypted secrets from Config/hosts/server/
- nixos/modules/homeserver.nix: migrated; sops.defaultSopsFile removed
- nixos/modules/traefik-deployments.nix: migrated; sops.defaultSopsFile removed
- nixos/modules/dynu.nix: migrated; paths updated to ../scripts/
- nixos/scripts/monitor.py: dynu IP monitor Python script
- nixos/scripts/ddclient.conf: ddclient config template
- AGENTS.md: fix stale reference to deprecated desktop secrets path

Validated:
  nix flake check -> all checks passed
  nix build .#nixosConfigurations.server.config.system.build.toplevel \
    --no-link -> success (nixos-system-server-26.11.20260910.8ce4ef6)
2026-09-11 17:29:22 -05:00

24 lines
592 B
Nix

{
description = "Homelab Core — Turnkey Declarative NixOS Appliance for roadtotech.me";
inputs = {
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, sops-nix, ... }@inputs: {
nixosConfigurations.server = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./nixos/configuration.nix
sops-nix.nixosModules.sops
];
};
};
}