gurkan
/
nixos-config
Archived
1
0
Fork 0

23.05 changes

This commit is contained in:
Gürkan 2023-07-06 11:14:02 +02:00
parent 8762d18ce6
commit 92e5619330
3 changed files with 17 additions and 7 deletions

View File

@ -46,7 +46,10 @@ in
};
nix = {
settings.allowed-users = [ "@wheel" ];
settings = {
allowed-users = [ "@wheel" ];
auto-optimise-store = true;
};
package = pkgs.nixFlakes;
extraOptions = ''
keep-outputs = true

View File

@ -1,11 +1,15 @@
{ lib, config, ... }:
let
baseconfig = { allowUnfree = true; };
unstable = import (
fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz
) { config = baseconfig; };
in
{
services.gitea = {
enable = true;
rootUrl = "https://git.gurkan.in";
package = unstable.gitea;
appName = "My git forks";
httpAddress = "127.0.0.1";
domain = "git.gurkan.in";
settings = {
service.DISABLE_REGISTRATION = true;
log.LEVEL= "Warn";
@ -13,6 +17,9 @@
DEFAULT_REPO_UNITS = "repo.code,repo.releases";
};
server = {
ROOT_URL = "https://git.gurkan.in";
HTTP_ADDR = "127.0.0.1";
DOMAIN = "git.gurkan.in";
LANDING_PAGE = "explore";
};
ui = {

View File

@ -8,8 +8,8 @@ in
{
imports = [
(builtins.fetchTarball {
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/nixos-22.11/nixos-mailserver-nixos-22.11.tar.gz";
sha256 = "1h1r4x2ffqwyk0ql6kjvcpg1bdiimyzhrsvn49702fsgzpx57fhd";
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/nixos-23.05/nixos-mailserver-nixos-23.05.tar.gz";
sha256 = "1ngil2shzkf61qxiqw11awyl81cr7ks2kv3r3k243zz7v2xakm5c";
})
];
@ -24,7 +24,7 @@ in
mailDirectory = "/shared/mail";
certificateDirectory = "/shared/mail/certificates";
dkimKeyDirectory = "/shared/.mail_dkim_keys";
certificateScheme = 3;
certificateScheme = "acme-nginx";
loginAccounts = secrets.mailAccount;
# "${secrets.mailAccount}" = {
# hashedPassword = secrets.mailAccountPass;