This commit is contained in:
@@ -18,6 +18,7 @@ in {
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
nixpkgs.source = inputs.nixpkgs;
|
||||
enable = true;
|
||||
|
||||
extraPackages = with pkgs; [ gcc ];
|
||||
|
||||
@@ -23,7 +23,7 @@ in {
|
||||
description = "The domain name of the mail server";
|
||||
};
|
||||
|
||||
services.mailserver.loginAccounts = lib.mkOption {
|
||||
services.mailserver.accounts = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule {
|
||||
options = {
|
||||
hashedPassword = lib.mkOption {
|
||||
@@ -51,9 +51,9 @@ in {
|
||||
fqdn = "mail." + cfg.domain;
|
||||
domains = [ cfg.domain ];
|
||||
|
||||
loginAccounts = transformLoginAccounts cfg.domain cfg.loginAccounts;
|
||||
accounts = transformLoginAccounts cfg.domain cfg.accounts;
|
||||
|
||||
certificateScheme = "acme-nginx";
|
||||
x509.useACMEHost = "mail." + cfg.domain;
|
||||
};
|
||||
|
||||
services.postfix.settings.main = {
|
||||
|
||||
@@ -66,7 +66,7 @@ in {
|
||||
./experimental-sshd.nix
|
||||
./minecraft-wow-proxy.nix
|
||||
(import ./ente.nix { inherit domain; })
|
||||
(import ./immich.nix { inherit domain; })
|
||||
(import ./immich.nix { inherit domain inputs; })
|
||||
(import ./mechabellum.nix { inherit flake self inputs domain; })
|
||||
(import (./. + "/sentinèlla.nix") { inherit flake self inputs domain; })
|
||||
];
|
||||
@@ -347,7 +347,7 @@ in {
|
||||
services.mailserver = {
|
||||
enable = true;
|
||||
domain = domain;
|
||||
loginAccounts = builtins.listToAttrs (map mkMailLoginAccount mailUserNames);
|
||||
accounts = builtins.listToAttrs (map mkMailLoginAccount mailUserNames);
|
||||
};
|
||||
|
||||
mailserver.stateVersion = 3;
|
||||
@@ -422,6 +422,7 @@ in {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
# NOTE(yukkop): virtualHosts.${domain} is owned by the hectic-landing module
|
||||
virtualHosts."mail.${domain}".enableACME = true;
|
||||
virtualHosts."store.${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ domain, ... }:
|
||||
{ domain, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -13,4 +14,8 @@
|
||||
credentialsFile = config.sops.secrets."immich/storage-box".path;
|
||||
};
|
||||
};
|
||||
|
||||
# Immich 3 is not available on nixos-26.05.
|
||||
services.immich.package =
|
||||
inputs.nixpkgs-gitea.legacyPackages.${pkgs.stdenv.hostPlatform.system}.immich;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
};
|
||||
|
||||
wsl.defaultUser = "yukkop";
|
||||
networking.resolvconf.enable = false;
|
||||
|
||||
# 16 GiB swap
|
||||
swapDevices = [{
|
||||
|
||||
Reference in New Issue
Block a user