take ghost to titan

This commit is contained in:
cy 2024-12-28 22:46:25 -05:00
parent b6a16534ea
commit bfb5a13e34
5 changed files with 108 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{ modulesPath, lib, pkgs, ...}:
{ modulesPath, config, lib, pkgs, ...}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
@ -8,6 +8,13 @@
./hardware-configuration.nix
];
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
sops.secrets = {
"caddy/env" = {
sopsFile = ../../secrets/services/caddy.yaml;
};
};
boot = {
loader = {
systemd-boot.enable = true;
@ -62,4 +69,25 @@
443
];
};
# container stuff
virtualisation.containers.enable = true;
virtualisation.podman = {
enable = true;
# create 'docker' alias for podman, to use as
# drop-in replacement
dockerCompat = true;
defaultNetwork.settings = {
dns_enabled = true;
ipv6_enabled = true;
};
};
virtualisation.oci-containers.backend = "podman";
services.caddy = {
enable = true;
configFile = ./Caddyfile;
environmentFile = config.sops.secrets."caddy/env".path;
logFormat = lib.mkForce "level INFO";
};
}