add webdav service
This commit is contained in:
parent
8ac6886c1d
commit
ca5881d12c
4 changed files with 144 additions and 0 deletions
37
hosts/dav/default.nix
Normal file
37
hosts/dav/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../../services/openssh.nix
|
||||
../../services/prometheus-node.nix
|
||||
./radicale.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "dav";
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
80 # HTTP/1
|
||||
443 # HTTP/2
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
443 # HTTP/3
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
openssh.banner = ''
|
||||
__
|
||||
/\ \
|
||||
\_\ \ __ __ __
|
||||
/'_` \ /'__`\ /\ \/\ \
|
||||
/\ \L\ \/\ \L\.\_\ \ \_/ |
|
||||
\ \___,_\ \__/.\_\\ \___/
|
||||
\/__,_ /\/__/\/_/ \/__/
|
||||
'';
|
||||
};
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
Loading…
Reference in a new issue