After doing a nixos-rebuild, if I type man man
, I now get:
<standard input>:4: warning: can't find character with input code 2
<standard input>:4: warning: can't find character with input code 4
<standard input>:4: warning: can't find character with input code 6
<standard input>:4: warning [p 1, 0.0i]: can't break line
<standard input>:4: warning: can't find character with input code 127
<standard input>:4: warning: can't find character with input code 7
<standard input>:5: warning: can't find character with input code 5
<standard input>:9: warning [p 1, 0.7i]: can't break line
<standard input>:10: warning: can't find character with input code 12
<standard input>:11: warning: numeric expression expected (got `J')
<standard input>:15: warning [p 1, 1.7i]: cannot adjust line
<standard input>:16: warning [p 1, 1.8i]: cannot adjust line
<standard input>:16: warning [p 1, 2.0i]: can't break line
<standard input>:19: warning: numeric expression expected (got `�')
<standard input>:19: warning [p 1, 2.5i]: cannot adjust line
<standard input>:19: warning [p 1, 2.7i]: cannot adjust line
<standard input>:19: warning [p 1, 2.8i]: cannot adjust line
<standard input>:20: cannot use character `1' as a starting delimiter
<standard input>:20: warning [p 1, 3.2i]: can't break line
^H<B5>[[w<E3><B8>~ǯ<C0>jZ<CE>h<CB>=<EE><CB>l2'<BE><B6><F8><B6>{;<B3>qv6E<B0> Ҳ<FA><E4><C7>o]<ED><E9><C9>d2cĥP<A8><FA><EA><AB>:<B9><EB><E4><AE>'?<E8><AA>ҩTue<AA>2Sek9+<ED>R.U<CB><C9>ZVM<A6>6y]j馥)<AA><DF><D2><CB>B͵ٻʾ<CA>S<EC>/Zl5=m<B1>.<CD>|Q<C9>
... and more gibberish like that
I’m using an identical NixOS configuration (apart from hardware stuff) on another machine, and I don’t have this problem.
# nix-channel --list
nixos https://nixos.org/channels/nixos-19.03
My configuration.nix
:
$ cat /etc/nixos/configuration.nix
{ config, pkgs, options, ... }:
{
networking.hostName = "wombat9000"; # Define your hostname.
imports =
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
/home/amy/dotWombat/nixos/wombat9000.nix
/home/amy/dotWombat/nixos/R.nix
/home/amy/dotWombat/nixos/python3.nix
/home/amy/dotWombat/nixos/base.nix
];
}
My wombat9000.nix
:
$ cat /home/amy/dotWombat/nixos/wombat9000.nix
{ config, pkgs, ... }:
{
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
}
My R.nix
and python3.nix
files are probably not relevant.
My base.nix
is below. I’m guessing the problem has something to do with the i18n section, but I don’t think I’ve changed that since I first installed NixOS.
$ cat /home/amy/dotWombat/nixos/base.nix
{ config, pkgs, options, ... }:
{
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
# boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
# boot.initrd.checkJournalingFS = false;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "uk";
defaultLocale = "en_IE.UTF-8";
};
# Set your time zone.
time.timeZone = "Europe/Dublin";
nixpkgs.overlays = [
(import /home/amy/nix-overlays/default.nix)
];
# Allow software with an unfree license
nixpkgs.config.allowUnfree = true;
# Packages I want to use
environment.systemPackages = import /home/amy/dotWombat/nixos/packages.nix pkgs;
# Set the JAVA_HOME environment variable
programs.java.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable the X11 windowing system.
# services.xserver.enable = true;
# services.xserver.layout = "uk";
# services.xserver.xkbOptions = "eurosign:e";
services.xserver = {
enable = true;
layout = "ie";
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = haskellPackages: [
haskellPackages.xmonad
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
];
};
};
# Enable touchpad support.
# services.xserver.libinput.enable = true;
# Enable the KDE Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
nix.gc.automatic = true;
nix.gc.dates = "06:15";
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.amy = {
isNormalUser = true;
home = "/home/amy";
description = "Amy de Buitleir";
extraGroups = [ "wheel" "networkmanager" "vboxsf" ];
uid = 1000;
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "18.09"; # Did you read the comment?
}
My packages.nix
is probably not relevant.
$ locale
LANG=en_IE.UTF-8
LC_CTYPE="en_IE.UTF-8"
LC_NUMERIC="en_IE.UTF-8"
LC_TIME="en_IE.UTF-8"
LC_COLLATE="en_IE.UTF-8"
LC_MONETARY="en_IE.UTF-8"
LC_MESSAGES="en_IE.UTF-8"
LC_PAPER="en_IE.UTF-8"
LC_NAME="en_IE.UTF-8"
LC_ADDRESS="en_IE.UTF-8"
LC_TELEPHONE="en_IE.UTF-8"
LC_MEASUREMENT="en_IE.UTF-8"
LC_IDENTIFICATION="en_IE.UTF-8"
LC_ALL=