initial guestbook config
This commit is contained in:
parent
3f873c855f
commit
c86f305071
3 changed files with 65 additions and 1 deletions
|
|
@ -7,13 +7,16 @@
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
guestbook.url = "git+https://git.ily.rs/lew/guestbook";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, sops-nix, ... }: {
|
outputs = { self, nixpkgs, sops-nix, guestbook, ... }: {
|
||||||
nixosConfigurations.lab = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.lab = nixpkgs.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
|
specialArgs = { inherit guestbook; };
|
||||||
modules = [
|
modules = [
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
|
guestbook.nixosModules.default
|
||||||
./hosts/lab
|
./hosts/lab
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
./uptime-kuma.nix
|
./uptime-kuma.nix
|
||||||
./tinyauth.nix
|
./tinyauth.nix
|
||||||
./shlink.nix
|
./shlink.nix
|
||||||
|
./guestbook.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "lab";
|
networking.hostName = "lab";
|
||||||
|
|
|
||||||
60
hosts/lab/guestbook.nix
Normal file
60
hosts/lab/guestbook.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
{ guestbook, ... }:
|
||||||
|
{
|
||||||
|
services.guestbook = {
|
||||||
|
enable = true;
|
||||||
|
package = guestbook.packages.aarch64-linux.default;
|
||||||
|
port = 8123;
|
||||||
|
dataDir = "/srv/guestbook/data";
|
||||||
|
user = "guestbook";
|
||||||
|
group = "guestbook";
|
||||||
|
|
||||||
|
siteTitle = "ily [dot] rs";
|
||||||
|
caddy = {
|
||||||
|
enable = true;
|
||||||
|
domain = "g.ily.rs";
|
||||||
|
};
|
||||||
|
|
||||||
|
features = {
|
||||||
|
submissions.enable = false;
|
||||||
|
websites.enable = false;
|
||||||
|
drawing = {
|
||||||
|
enable = false;
|
||||||
|
canvasWidth = 400;
|
||||||
|
canvasHeight = 200;
|
||||||
|
};
|
||||||
|
voiceNote = {
|
||||||
|
enable = false;
|
||||||
|
maxDuration = 20;
|
||||||
|
};
|
||||||
|
telegram = {
|
||||||
|
enable = false;
|
||||||
|
chatId = 8669496383;
|
||||||
|
};
|
||||||
|
security = {
|
||||||
|
htmlInjection.enable = true;
|
||||||
|
honeypot.enable = true;
|
||||||
|
captcha.enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
limits = {
|
||||||
|
name = 0;
|
||||||
|
message = 0;
|
||||||
|
website = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
styles = {
|
||||||
|
separator = "-----------";
|
||||||
|
labels = {
|
||||||
|
submit = "Submit";
|
||||||
|
name = "Your name*:";
|
||||||
|
website = "Your website:";
|
||||||
|
message = "Your message*:";
|
||||||
|
};
|
||||||
|
message = {
|
||||||
|
width = 400;
|
||||||
|
height = 150;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue