Compare commits

...

2 commits

Author SHA1 Message Date
Updater
86a896c688 feat(OVHCloud): Added simple caddy config 2024-09-26 11:50:00 +02:00
Updater
64dcc1d156 chore(flake): Added nixos-caddy-ovh input 2024-09-26 11:49:20 +02:00
3 changed files with 41 additions and 1 deletions

View file

@ -37,6 +37,26 @@
"type": "github"
}
},
"caddy": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1727343602,
"narHash": "sha256-V1HAB1p11dcUyurJAB60tcgn4Su2gPoPJ6dZqmCDfiE=",
"owner": "GaspardCulis",
"repo": "nixos-caddy-ovh",
"rev": "df515b6bfd497de2d150867c4c13aab1e3d011ce",
"type": "github"
},
"original": {
"owner": "GaspardCulis",
"repo": "nixos-caddy-ovh",
"type": "github"
}
},
"deploy-rs": {
"inputs": {
"flake-compat": "flake-compat",
@ -362,6 +382,7 @@
},
"root": {
"inputs": {
"caddy": "caddy",
"deploy-rs": "deploy-rs",
"disko": "disko",
"end-rs": "end-rs",

View file

@ -8,6 +8,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
caddy = {
url = "github:GaspardCulis/nixos-caddy-ovh";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,4 +1,9 @@
{modulesPath, ...}: {
{
modulesPath,
inputs,
pkgs,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
./disko-config.nix
@ -15,4 +20,13 @@
enable = true;
allowedTCPPorts = [22 80 443];
};
# Proxy
services.caddy = {
enable = true;
package = inputs.caddy.packages.${pkgs.system}.caddy;
virtualHosts."localhost".extraConfig = ''
respond "Hello, world!"
'';
};
}