Skip to content

Instantly share code, notes, and snippets.

View Saturn745's full-sized avatar
💭
Actively breaking things...

Saturn Saturn745

💭
Actively breaking things...
View GitHub Profile
@aszlig
aszlig / module.nix
Last active April 12, 2024 19:45
Passing secrets to NixOS containers without exposing them world-readable
{ pkgs, lib, config, ... }:
let
inherit (lib) mkOption types;
secretsModule = {
options.path = mkOption {
type = types.path;
example = lib.literalExample "pkgs.hello";
description = ''