A collection of example NixOS files that be included into configuration.nix on NixOS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

secrets.nix 1.1KB

123456789101112131415161718192021222324252627
  1. # This is an example secret file for NixOps managed hosts.
  2. #
  3. # You would not normally have this in a public repo and should make sure it's
  4. # in your .gitignore file to prevent accidentally leaking your passwords.
  5. { config, pkgs, ... }:
  6. {
  7. deployment.keys = {
  8. # An example set of keys to be used for the Gitea service's DB authentication
  9. gitea-dbpass = {
  10. text = "uNgiakei+x>i7shuiwaeth3z"; # Password, generated using pwgen -yB 24
  11. user = "gitea"; # User to own the key file
  12. group = "wheel"; # Group to own the key file
  13. permissions = "0640"; # Key file permissions
  14. };
  15. # Database key for TT-RSS
  16. tt-rss-dbpass = {
  17. text = "vaetohH{u9Veegh3caechish"; # Password, generated using pwgen -yB 24
  18. user = "tt_rss"; # User to own the key file
  19. group = "wheel"; # Group to own the key file
  20. permissions = "0640"; # Key file permissions
  21. };
  22. };
  23. }