77 ...
88} : let
99 # Shortcut config
10- cfg = config . services . devops-journey ;
10+ cfg = config . services . devops . book ;
1111
1212 # Packaged server
1313 server = flake . packages . ${ pkgs . stdenv . hostPlatform . system } . default ;
@@ -28,7 +28,7 @@ flake: {
2828 nginx = lib . mkIf ( cfg . enable && cfg . proxy . enable && cfg . proxy . proxy == "nginx" ) {
2929 services . nginx . virtualHosts = lib . debug . traceIf ( builtins . isNull cfg . proxy . domain ) "proxy.domain can't be null, please specicy it properly!" {
3030 "${ cfg . proxy . domain } " = {
31- addSSL = true ;
31+ forceSSL = true ;
3232 enableACME = true ;
3333 serverAliases = cfg . proxy . aliases ;
3434 locations . "/" = {
@@ -42,16 +42,16 @@ flake: {
4242 # The systemd service
4343 service = lib . mkIf cfg . enable {
4444 users . users . ${ cfg . user } = {
45- description = "DevOps Journey Website user" ;
45+ description = "DevOps Uzbekistan Website user" ;
4646 isSystemUser = true ;
4747 group = cfg . group ;
4848 } ;
4949
5050 users . groups . ${ cfg . group } = { } ;
5151
52- systemd . services . devops-journey = {
53- description = "Official website of DevOps Journey " ;
54- documentation = [ "https://github.com/devops-journey " ] ;
52+ systemd . services . devops-book = {
53+ description = "Guide book of DevOps Uzbekistan " ;
54+ documentation = [ "https://github.com/devopsuzb/book " ] ;
5555
5656 environment = {
5757 PORT = "${ toString cfg . port } " ;
@@ -115,14 +115,14 @@ flake: {
115115
116116 asserts = lib . mkIf cfg . enable {
117117 warnings = [
118- ( lib . mkIf ( cfg . proxy . enable && cfg . proxy . domain == null ) "services.devops-journey .proxy.domain must be set in order to properly generate certificate!" )
118+ ( lib . mkIf ( cfg . proxy . enable && cfg . proxy . domain == null ) "services.devops.book .proxy.domain must be set in order to properly generate certificate!" )
119119 ] ;
120120 } ;
121121in {
122122 options = with lib ; {
123- services . devops-journey = {
123+ services . devops . book = {
124124 enable = mkEnableOption ''
125- DevOps Journey website.
125+ DevOps Uzbekistan's Book website.
126126 '' ;
127127
128128 proxy = {
@@ -133,14 +133,14 @@ in {
133133 domain = mkOption {
134134 type = with types ; nullOr str ;
135135 default = null ;
136- example = "devops-journey .uz" ;
136+ example = "devopsuzb .uz" ;
137137 description = "Domain to use while adding configurations to web proxy server" ;
138138 } ;
139139
140140 aliases = mkOption {
141141 type = with types ; listOf str ;
142142 default = [ ] ;
143- example = [ "www.devops-journey .uz" ] ;
143+ example = [ "www.devopsuzb .uz" ] ;
144144 description = "List of domain aliases to add to domain" ;
145145 } ;
146146
@@ -169,29 +169,29 @@ in {
169169
170170 user = mkOption {
171171 type = types . str ;
172- default = "devops-journey " ;
172+ default = "devopsuzb-book " ;
173173 description = "User for running system + accessing keys" ;
174174 } ;
175175
176176 group = mkOption {
177177 type = types . str ;
178- default = "devops-journey " ;
178+ default = "devopsuzb-book " ;
179179 description = "Group for running system + accessing keys" ;
180180 } ;
181181
182182 dataDir = mkOption {
183183 type = types . str ;
184- default = "/var/lib/devops-journey /" ;
184+ default = "/var/lib/devops/book /" ;
185185 description = ''
186- The path where DevOps Journey Website server keeps data and possibly logs.
186+ The path where DevOps Uzbekistan's book server keeps data and possibly logs.
187187 '' ;
188188 } ;
189189
190190 package = mkOption {
191191 type = types . package ;
192192 default = server ;
193193 description = ''
194- Packaged devops-journey .uz website contents for service.
194+ Packaged devopsuzb .uz website contents for service.
195195 '' ;
196196 } ;
197197 } ;
0 commit comments