mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
15 lines
322 B
Nix
15 lines
322 B
Nix
{ runCommand }: {
|
|
|
|
b64decode = input:
|
|
builtins.readFile
|
|
(runCommand "b64decode" { } ''
|
|
base64 -d >$out <${builtins.toFile "input" input}
|
|
'');
|
|
|
|
b64encode = input:
|
|
builtins.readFile
|
|
(runCommand "b64encode" { } ''
|
|
base64 -w0 >$out <${builtins.toFile "input" input}
|
|
'');
|
|
|
|
}
|