ADD: terre-neuvas server
This commit is contained in:
parent
e0a82ee731
commit
4f411004e6
12 changed files with 247 additions and 25 deletions
19
modules/roles/server.nix
Normal file
19
modules/roles/server.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../common/nix.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
wget
|
||||
curl
|
||||
ripgrep
|
||||
fd
|
||||
pciutils
|
||||
usbutils
|
||||
p7zip
|
||||
gdu
|
||||
glances
|
||||
tmux
|
||||
];
|
||||
}
|
||||
13
modules/services/caddy.nix
Normal file
13
modules/services/caddy.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
_: {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."blog.lomig.me" = {
|
||||
extraConfig = ''
|
||||
root * /var/www/lomig
|
||||
file_server
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue