nix/common/configuration.nix

62 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
imports = [
./home-manager.nix
];
nixpkgs.config.allowUnfree = true;
time.timeZone = "Europe/Amsterdam";
console = {
earlySetup = true;
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
packages = with pkgs; [ terminus_font ];
keyMap = "us";
};
virtualisation = {
libvirtd.enable = true;
docker.enable = true;
};
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"en_US.UTF-8/UTF-8"
"nl_NL.UTF-8/UTF-8"
];
};
users.users.sijmen = {
isNormalUser = true;
extraGroups = [ "wheel" "libvirtd" ];
description = "Sijmen";
};
services = {
pipewire.enable = true;
printing.enable = true;
gvfs.enable = true;
usbmuxd.enable = true;
openssh = {
enable = true;
passwordAuthentication = false;
};
syncthing = {
enable = true;
user = "sijmen";
dataDir = config.users.users.sijmen.home;
};
};
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
nerdfonts
];
}