1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Use lib.head even more instead of defining custom options

This commit is contained in:
RGBCube 2024-04-30 12:56:08 +03:00
parent 15f5859956
commit c734c4b06c
No known key found for this signature in database
3 changed files with 3 additions and 7 deletions

View file

@ -28,7 +28,7 @@ in systemConfiguration {
}; };
mailserver = enabled { mailserver = enabled {
inherit domain fqdn; inherit fqdn;
domains = [ domain ]; domains = [ domain ];
certificateScheme = "acme"; certificateScheme = "acme";

View file

@ -66,7 +66,7 @@
(let (let
gitDomain = self.cube.services.forgejo.fqdn; gitDomain = self.cube.services.forgejo.fqdn;
mailDomain = self.disk.mailserver.domain; mailDomain = head self.disk.mailserver.domains;
in homeConfiguration { in homeConfiguration {
programs.nushell.configFile.text = mkAfter '' programs.nushell.configFile.text = mkAfter ''
# Sets the remote origin to the specified user and repository on my git instance # Sets the remote origin to the specified user and repository on my git instance

View file

@ -1,7 +1,3 @@
{ lib, ... }: { { lib, ... }: {
options = { options.services.forgejo.fqdn = lib.mkValue null;
mailserver.domain = lib.mkValue null;
services.forgejo.fqdn = lib.mkValue null;
};
} }