Nixos-Configuration/configurations/nixos/tofu/default.nix
2025-06-20 13:53:04 -04:00

46 lines
825 B
Nix

{
flake,
modulesPath,
config,
...
}:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix"
];
deploy = {
address = "200:1978:6503:e6f0:2dbe:11fd:74b:ff64";
};
sops.secrets = {
otfenv = {
owner = "otf";
group = "otf";
mode = "0550";
};
};
services = {
otf = {
enable = true;
environment = {
OTF_ADDRESS = "0.0.0.0:9000";
OTF_HOSTNAME = "tofu.skdevstudios.com";
OTF_DEFAULT_ENGINE = "tofu";
OTF_RESTRICT_ORG_CREATION = "true";
};
environmentFile = config.sops.secrets.otfenv.path;
};
};
networking = {
hostName = "tofu";
};
environment.systemPackages = [
];
system.stateVersion = "25.05";
}