Files
dotfiles/common/nixos.nix
Sebastian Moser e6a35ee756 stuff
2026-02-17 22:30:17 +01:00

31 lines
773 B
Nix

{ lib, self, ... }:
# config that i use on all my hosts, that run native nixos
# excluding for example my phone phone
{
##system.stateVersion = "23.05"; # Did you read the comment?
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
#keyMap = "at";
useXkbConfig = true; # use xkbOptions in tty.
};
system.activationScripts.addBinBash = lib.stringAfter [ "var" ] ''
# there is no /bin/bash
# https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673
ln -nsf /run/current-system/sw/bin/bash /bin/bash
'';
# the hosts file
networking.extraHosts = ''
${builtins.readFile "${self}/misc/my-hosts"}
${builtins.readFile "${self}/misc/my-hosts-t"}
'';
}