From 7a42b92bd98c93f93d760b76cf34d6bf944b379e Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Sun, 28 Jan 2024 10:56:20 +0100 Subject: [PATCH] minor cleanup --- configuration.nix | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/configuration.nix b/configuration.nix index 859452c..eb0e65a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,10 +1,6 @@ { lib, config, inputs, pkgs, ... }: let root_host = "grimmauld.de"; - - # git add --intent-to-add email.txt ; git update-index --assume-unchanged email.txt - root_email = (builtins.elemAt (lib.strings.match "[[:space:]]*([^[:space:]]+)[[:space:]]*" (builtins.readFile ./email.txt)) 0); - in { imports = [ ./hardware-configuration.nix @@ -13,6 +9,22 @@ in { boot.kernelPackages = pkgs.linuxPackages_latest; services.logrotate.checkConfig = false; # needed or this explodes + time.timeZone = "Europe/Berlin"; + # Select internationalisation properties. + i18n.defaultLocale = "en_US.UTF-8"; + + i18n.extraLocaleSettings = { + LC_ADDRESS = "de_DE.UTF-8"; + LC_IDENTIFICATION = "de_DE.UTF-8"; + LC_MEASUREMENT = "de_DE.UTF-8"; + LC_MONETARY = "de_DE.UTF-8"; + LC_NAME = "de_DE.UTF-8"; + LC_NUMERIC = "de_DE.UTF-8"; + LC_PAPER = "de_DE.UTF-8"; + LC_TELEPHONE = "de_DE.UTF-8"; + LC_TIME = "de_DE.UTF-8"; + }; + users.users.grimmauld = { isNormalUser = true; description = "grimmauld"; @@ -39,16 +51,16 @@ in { gitea matrix-synapse-tools.synadm matrix-synapse -# ffmpeg-full pufferpanel (writeShellScriptBin "pufferpanel-nix" "pufferpanel --workDir /var/lib/pufferpanel $@") (writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@") + (writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@") ]; environment.sessionVariables = { NIXPKGS_ALLOW_UNFREE="1"; - OMP_NUM_THREADS = "4"; + OMP_NUM_THREADS = "8"; }; networking.firewall = { @@ -69,10 +81,10 @@ in { virtualHosts."${root_host}" = { forceSSL = true; - enableACME = lib.mkForce false; # use the cert above, not some weird one that matrix-synapse module supplies + enableACME = lib.mkForce false; # use the correct cert, not some weird one that matrix-synapse module supplies useACMEHost = root_host; locations."/" = { - root = "/var/www/grimmauld.duckdns.org"; + root = "/var/www/${root_host}"; }; }; };