nix/common/configuration.nix
2022-09-03 03:22:07 +02:00

66 lines
1.2 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";
};
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" ];
description = "Sijmen";
};
services = {
pipewire.enable = true;
gvfs.enable = true;
usbmuxd.enable = true;
smartd.enable = true;
printing = {
enable = true;
drivers = with pkgs; [ hplip ];
};
openssh = {
enable = true;
passwordAuthentication = false;
};
syncthing = {
enable = true;
user = "sijmen";
dataDir = config.users.users.sijmen.home;
};
};
fonts.fonts = with pkgs; [
dejavu_fonts
iosevka
nerdfonts
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
powerline-fonts
source-han-sans
ubuntu_font_family
];
}