diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-18 09:24:08 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-18 09:24:17 +0100 |
commit | e7990ebbba8c9b903687c177588b45e9294f8d11 (patch) | |
tree | 066a6c3051432b778872d19659684b99a58773d3 /nixos/tente-configuration.nix | |
parent | 2d9787e49138ae2af95dd66d12140ee831518e6a (diff) |
refactor(tente): group services
Diffstat (limited to 'nixos/tente-configuration.nix')
-rw-r--r-- | nixos/tente-configuration.nix | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/nixos/tente-configuration.nix b/nixos/tente-configuration.nix index b7192ea..3c52332 100644 --- a/nixos/tente-configuration.nix +++ b/nixos/tente-configuration.nix @@ -76,45 +76,44 @@ in ]; networking.firewall.allowedUDPPorts = []; - # List services that you want to enable: - - # Enable the OpenSSH daemon. - services.openssh.enable = true; - users.groups.www-data = {}; systemd.tmpfiles.rules = [ "d /srv/www 2770 root www-data -" ]; - services.gitolite = { - enable = true; - adminPubkey = ""; # TODO: submit PR to nixpkgs to make this option optional - user = "git"; - group = "git"; - dataDir = "/srv/gitolite"; - extraGitoliteRc = '' - $RC{UMASK} = 0027; - ''; - }; - - security.acme = { - acceptTerms = true; # https://letsencrypt.org/repository/ - defaults.email = acmeEmail; - }; + services = { + openssh.enable = true; + + gitolite = { + enable = true; + adminPubkey = ""; # TODO: submit PR to nixpkgs to make this option optional + user = "git"; + group = "git"; + dataDir = "/srv/gitolite"; + extraGitoliteRc = '' + $RC{UMASK} = 0027; + ''; + }; - services.nginx = { - enable = true; - group = "www-data"; + nginx = { + enable = true; + group = "www-data"; + }; # My personal website - virtualHosts."${domain}" = { + nginx.virtualHosts.${domain} = { enableACME = true; forceSSL = true; root = "/srv/www/${domain}"; }; }; + security.acme = { + acceptTerms = true; # https://letsencrypt.org/repository/ + defaults.email = acmeEmail; + }; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix. |