unnamed-systems/nix-secrets
unnamed-systems/nix-secrets has 58 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-13 05:53 UTC. Last push 2026-11-05.
A postmodern secrets manager for NixOS [maintainer=@BANanaD3V,@yunfachi]
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
The project is in the polish development stage. It is actively being used in the authors' configurations and is production-ready.
nix-secrets is a NixOS secret management solution designed to be lightweight and simple to use. It comes as a NixOS module which automatically installs the nix-secrets binary used for secret management. The secrets themselves are encrypted using the age encryption format.
Advantages
The main advantages over existing solutions like sops-nix and agenix are:
- Entirely managed in the nix module system. No need for
.sops.yamlor standalonesecrets.nix. - Supports templates, placeholders and generators.
- Aims to be as atomic as possible with no intermediate state. No imperative bash scripts.
- Utilizes built-in age asymmetrical encryption, resulting in no public key leakage in encrypted files unlike
sops-nixoragenix. This means you can have your secrets managed in a private repository without ever showing your public keys. - Small binary and closure size. The
nix-secretsbinary is less than 2 Mb, compared tosopsbeing over 50 Mb, for example.
Quick Installation
Add the input to your flake.nix:
inputs.nix-secrets.url = "github:unnamed-systems/nix-secrets";
Then add the module to your system modules:
imports = [ inputs.nix-secrets.nixosModules.default ];
The module automatically adds the nix-secrets binary to your environment.systemPackages.
To generate a key you can use the provided nix-secrets CLI or any other age compatible one (age-keygen, rage-keygen).
nix-secrets keygen [-o <output>]
For further CLI usage consult the documentation or the manpages.
To enable the module itself, create a secrets directory and enable the following options:
{
security.nix-secrets = {
enable = true;
storage = ../secrets; # Relative path to your `secrets` (copied to /nix/store)
identityPaths = [
"/home/user/keys.txt" # Path to your age private key
"/home/user/.ssh/id_ed25519" # You can also use SSH keys
];
recipientAliases = {
first = "age14e2jdmau7tpau9emcn6gmg26vfl0uyf6cfd9lz85jml6ttv9wq2qphps4t"; # Your age recipient (public key)
ssh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuUsB0HH//1qkvgQMWTEoNd0riZpk+8A5w1Ep2vGKk0"; # Or your SSH public key
};
# Add your secrets here...
secrets = {
password.recipients = [ "first" ];
signingKey.recipients = [ "ssh" ];
};
};
}
Before actually adding the secret to your storage directory, define it in the config as previously shown. Afterwards, make sure to add your secrets directory to git, rebuild your system and run the command to edit your secret:
nix-secrets edit password --storage secrets
password being your secret name you've defined previously and secrets is the relative directory to your storage. You can set the security.nix-secrets.storagePath to an absolute path (e.g. /home/user/nixos-config/secrets) to eliminate the need to pass the storage argument.
After editing the secret, add the resulting file to git and rebuild your system again. The secret should now be available under its default path in /run/nix-secrets.
For advanced configuration refer to the documentation
Reference
For a full list of options, refer to the nixos option reference and the darwin option reference
관련 프로젝트 살펴보기
trimstray/the-book-of-secret-knowledge
영감을 주는 목록, 매뉴얼, 치트시트, 블로그, 팁, 원라이너, CLI/웹 도구 등을 모은 컬렉션.
258,122 스타Hack-with-Github/Awesome-Hacking
해커, 펜테스터, 보안 연구자를 위한 다양한 Awesome 목록 모음.
125,360 스타swisskyrepo/PayloadsAllTheThings
웹 애플리케이션 보안과 모의 침투 테스트/CTF에 유용한 페이로드 및 우회 방법 목록.
82,623 스타caddyserver/caddy
빠르고 확장 가능한 멀티플랫폼 HTTP/1-2-3 웹 서버이며, 자동 HTTPS를 지원합니다
79,020 스타