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 = [
|
||||
./hardware-configuration.nix
|
||||
./secrets.nix
|
||||
./services.nix
|
||||
./modules/acme.nix
|
||||
|
||||
../common
|
||||
|
@ -48,12 +49,8 @@
|
|||
|
||||
users.groups.media = { };
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
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