diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-13 15:22:54 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-06-13 15:33:13 +0200 |
commit | 8b628ed61020060f953769b2624ed04cc57db9a9 (patch) | |
tree | ce5d656dc7909c327bf8e504bcdbcc75d7db604d /modules/nixos | |
parent | fix(impermanence): Re-active etesync module (diff) | |
download | nixos-server-8b628ed61020060f953769b2624ed04cc57db9a9.tar.gz nixos-server-8b628ed61020060f953769b2624ed04cc57db9a9.zip |
refactor(modules): Ensure strict coherence to patterns
Diffstat (limited to 'modules/nixos')
-rw-r--r-- | modules/nixos/vhack/default.nix | 2 | ||||
-rw-r--r-- | modules/nixos/vhack/git-server/default.nix (renamed from modules/nixos/vhack/git-server.nix) | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/modules/nixos/vhack/default.nix b/modules/nixos/vhack/default.nix index 9f717c2..b6abcc1 100644 --- a/modules/nixos/vhack/default.nix +++ b/modules/nixos/vhack/default.nix @@ -1,5 +1,5 @@ {...}: { imports = [ - ./git-server.nix + ./git-server ]; } diff --git a/modules/nixos/vhack/git-server.nix b/modules/nixos/vhack/git-server/default.nix index bcc049a..550bc90 100644 --- a/modules/nixos/vhack/git-server.nix +++ b/modules/nixos/vhack/git-server/default.nix @@ -6,8 +6,12 @@ }: let cfg = config.vhack.git-server; in { - options.vhack.git-server.enable = lib.mkEnableOption "a lightweight git-server, - realised with cgit and gitolite."; + options.vhack.git-server = { + enable = lib.mkEnableOption '' + a lightweight git-server, realised with cgit and gitolite. + ''; + }; + config = lib.mkIf cfg.enable { services = { gitolite = { @@ -20,6 +24,7 @@ in { $RC{UMASK} = 0027; # Enable group access, important for cgit. ''; }; + cgit."git.vhack.eu" = { enable = true; package = pkgs.cgit-pink; @@ -31,6 +36,7 @@ in { source-filter = "${config.services.cgit."git.vhack.eu".package}/lib/cgit/filters/syntax-highlighting.py"; }; }; + nginx.virtualHosts."git.vhack.eu" = { enableACME = true; forceSSL = true; |