Compare commits
2 commits
5bff8ead3b
...
86a896c688
Author | SHA1 | Date | |
---|---|---|---|
|
86a896c688 | ||
|
64dcc1d156 |
3 changed files with 41 additions and 1 deletions
21
flake.lock
21
flake.lock
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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!"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue