Skip to content

Instantly share code, notes, and snippets.

View Saturn745's full-sized avatar
🎸
Hey maaan

Saturn Saturn745

🎸
Hey maaan
View GitHub Profile
/*
* Copyright (C) Grabsky (michal.czopek.foss@proton.me)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License v3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@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 = ''