nix/common/configuration.nix

77 lines
1.4 KiB
Nix

{ config, pkgs, ... }:
{
imports = [
./home-manager.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
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";
};
environment.sessionVariables = rec {
MOZ_ENABLE_WAYLAND = "1";
NIXOS_OZONE_WL = "1";
QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland";
EDITOR = "nvim";
};
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;
pcscd.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
];
}