nix/common/configuration.nix

95 lines
1.8 KiB
Nix
Raw Normal View History

2022-08-01 21:11:10 +00:00
{ config, pkgs, ... }:
{
imports = [
./home-manager.nix
];
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 14d";
};
};
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;
2023-03-31 12:17:02 +00:00
extraGroups = [ "wheel" "docker" "wireshark" "video" "dialout" "libvirt" ];
2022-08-05 14:44:13 +00:00
description = "Sijmen";
shell = pkgs.zsh;
};
programs.zsh.enable = true;
services = {
pipewire.enable = true;
gvfs.enable = true;
usbmuxd.enable = true;
2022-08-12 11:12:36 +00:00
smartd.enable = true;
2022-11-02 22:59:56 +00:00
pcscd.enable = true;
2022-12-17 16:39:53 +00:00
fwupd.enable = true;
2022-08-12 11:12:16 +00:00
printing = {
enable = true;
drivers = with pkgs; [ hplip ];
};
openssh = {
enable = true;
2023-03-31 12:17:02 +00:00
settings = {
PasswordAuthentication = false;
};
};
#syncthing = {
#enable = true;
#user = "sijmen";
#dataDir = config.users.users.sijmen.home;
#};
};
fonts.fonts = with pkgs; [
2023-03-31 12:17:02 +00:00
corefonts
2022-08-20 13:33:45 +00:00
dejavu_fonts
2022-09-03 01:22:07 +00:00
iosevka
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
2022-08-08 00:11:12 +00:00
powerline-fonts
2022-08-20 13:33:45 +00:00
source-han-sans
ubuntu_font_family
2023-03-31 12:17:02 +00:00
vistafonts
];
2022-08-01 21:11:10 +00:00
}