Update to nixos 23.05
This commit is contained in:
@@ -9,14 +9,6 @@
|
||||
networking.hostName = "redshirt";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
# keyMap = "no";
|
||||
useXkbConfig = true; # use xkbOptions in tty.
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
./services/gitea.nix
|
||||
./services/hedgedoc.nix
|
||||
./services/vaultwarden.nix
|
||||
./services/code-server.nix
|
||||
# ./services/code-server.nix
|
||||
# TODO:
|
||||
# x Boot
|
||||
# x Mount ZFS
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.services.gitea;
|
||||
domain = "git.feal.no";
|
||||
httpPort = 3004;
|
||||
in {
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
@@ -8,15 +10,16 @@ in {
|
||||
appName = "felixalbs Gitea";
|
||||
database = {
|
||||
type = "postgres";
|
||||
#passwordFile = "/var/gitea/passwdfile";
|
||||
};
|
||||
domain = "git.feal.no";
|
||||
rootUrl = "https://git.feal.no";
|
||||
httpPort = 3004;
|
||||
|
||||
|
||||
settings = {
|
||||
server.LANDING_PAGE=''"/felixalb"'';
|
||||
server = {
|
||||
LANDING_PAGE=''"/felixalb"'';
|
||||
HTTP_PORT = httpPort;
|
||||
DOMAIN = domain;
|
||||
ROOT_URL = "https://${domain}";
|
||||
};
|
||||
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
session.COOKIE_SECURE = true;
|
||||
|
||||
@@ -45,5 +48,5 @@ in {
|
||||
# - configure mailer
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ cfg.httpPort ];
|
||||
networking.firewall.allowedTCPPorts = [ httpPort ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user