WIP: home-manager modules and install tooling (in progress, unreviewed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J1cugeLkfFLZMpiztQ8TyN
This commit is contained in:
30 files changed
+2619
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Encrypts a file as secrets/<name>.age for the recipients in secrets/secrets.nix.
|
||||
# `nix` (to read secrets.nix) is taken from the system PATH.
|
||||
{
|
||||
lib,
|
||||
writeShellApplication,
|
||||
coreutils,
|
||||
diffutils,
|
||||
git,
|
||||
jq,
|
||||
age,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "secret-from-file";
|
||||
runtimeInputs = [
|
||||
coreutils
|
||||
diffutils
|
||||
git
|
||||
jq
|
||||
age
|
||||
];
|
||||
text = builtins.readFile ./secret-from-file.sh;
|
||||
meta = {
|
||||
description = "Encrypt an existing file as secrets/<name>.age using the agenix recipient rules";
|
||||
mainProgram = "secret-from-file";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user