bonfire/hosts/common.nix
2023-06-06 23:18:09 +05:00

33 lines
904 B
Nix

{ config, lib, ... }:
with builtins;
with lib;
let
blocklist = fetchurl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
in {
networking.extraHosts = ''
192.168.156.1 router.home
# Hosts
192.168.1156.28 elnafo.home
# Block garbage
${optionalString config.services.xserver.enable (readFile blocklist)}
'';
## Location config -- since Toronto is my 127.0.0.1
time.timeZone = mkDefault "Asia/Yekaterinburg";
i18n.defaultLocale = mkDefault "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
}