This configuration is used to set up my home on any machine.
Applying a configuration referenced in ./hosts
- Zen (Ubuntu Laptop):
home-manager switch --flake .#justin@zen - Bee (NixOS Home Server):
home-manager switch --flake .#justin@bee
Some hosts configure sops which is used to manage secrets, for which some additional work post switch needs to be done.
sops --encrypt --age <AGE_PUBLIC_KEY> <SECRETS_YAML> <SECRETS_YAML_ENC>Where:
AGE_PUBLIC_KEY: path to AGE public key (hidden locally)SECRETS_YAML: path to.yamlcontaining secrets (hidden locally)SECRETS_YAML_ENC: encrypted version of secrets (can be stored publicly)
While sops-nix should automatically handle decryption based on the parameters in sops.nix,
secrets may be decrypted manually using:
sops --decrypt --input-type yaml --output-type yaml <SECRETS_YAML_ENC>On NixOS secrets go to /run/secrets. With home-manager they go to ~/.config/sops-nix/secrets