Compare commits
2 commits
6a1bc46ecb
...
62c440f78a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62c440f78a | ||
|
|
dc8b13736b |
3 changed files with 50 additions and 7 deletions
41
configurations/nixos/observer-tofu/default.nix
Normal file
41
configurations/nixos/observer-tofu/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
flake,
|
||||||
|
modulesPath,
|
||||||
|
# config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (flake) inputs;
|
||||||
|
inherit (inputs) self;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
self.nixosModules.default
|
||||||
|
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||||
|
];
|
||||||
|
services = {
|
||||||
|
tty-ips.enable = true;
|
||||||
|
uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
DATA_DIR = "/var/lib/uptime-kuma/";
|
||||||
|
UPTIME_KUMA_HOST = "127.0.0.1";
|
||||||
|
PORT = "3001";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
firewall.enable = false;
|
||||||
|
yggdrasil = {
|
||||||
|
enable = true;
|
||||||
|
AllowedPublicKeys = [
|
||||||
|
"d0e265fcf663451ae9bc048dc1297749819ce9d48042a986f2866c15a779a074"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
hostName = "observer-tofu";
|
||||||
|
};
|
||||||
|
environment.systemPackages = [
|
||||||
|
];
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
}
|
||||||
|
|
@ -16,6 +16,14 @@ in
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||||
];
|
];
|
||||||
|
sops.secrets = {
|
||||||
|
otfenv = {
|
||||||
|
owner = "otf";
|
||||||
|
group = "otf";
|
||||||
|
mode = "0550";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
tty-ips.enable = true;
|
tty-ips.enable = true;
|
||||||
otf = {
|
otf = {
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,6 @@
|
||||||
];
|
];
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ../../../secrets.yaml;
|
defaultSopsFile = ../../../secrets.yaml;
|
||||||
secrets = {
|
|
||||||
otfenv = {
|
|
||||||
owner = "otf";
|
|
||||||
group = "otf";
|
|
||||||
mode = "0550";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue