Add nginx & certbot
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
26
hosts/jupiter/users/nick/configs/console/podman/default.nix
Normal file
26
hosts/jupiter/users/nick/configs/console/podman/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
hmConfig = config.home-manager.users.${user};
|
||||
in
|
||||
{
|
||||
home-manager.users.${user}.sops = {
|
||||
secrets."registry/docker.io".sopsFile = ../../../../../../../secrets/personal/secrets.yaml;
|
||||
|
||||
templates."containers-auth.json" = {
|
||||
content = builtins.readFile (
|
||||
(pkgs.formats.json { }).generate "auth.json" {
|
||||
auths = {
|
||||
"docker.io" = {
|
||||
auth = hmConfig.sops.placeholder."registry/docker.io";
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
path = "${home}/.config/containers/auth.json";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user