Move services into their own file
This commit is contained in:
parent
1c6d523a27
commit
e5996c4d0a
2 changed files with 7 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
|
./services.nix
|
||||||
./modules/acme.nix
|
./modules/acme.nix
|
||||||
|
|
||||||
../common
|
../common
|
||||||
|
@ -48,12 +49,8 @@
|
||||||
|
|
||||||
users.groups.media = { };
|
users.groups.media = { };
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
];
|
];
|
||||||
|
|
||||||
services.caddy.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
6
hosts/nixedo/services.nix
Normal file
6
hosts/nixedo/services.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
caddy.enable = true;
|
||||||
|
openssh.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue