nixos/hosts/desktop.nix

52 lines
1.2 KiB
Nix

{ pkgs, ... }:
{
imports = [ ./common.nix ];
environment.systemPackages = with pkgs; [ libnotify ];
security.rtkit.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = false;
services = {
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
xserver = {
layout = "gb";
xkbVariant = "";
};
};
console.keyMap = "uk";
programs.ssh.startAgent = true;
programs.dconf.enable = true;
fonts = {
packages = with pkgs; [
# icon fonts
material-symbols
# normal fonts
jost
lexend
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
roboto
# nerdfonts
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
fontconfig = {
enable = true;
# user defined fonts
# the reason there's Noto Color Emoji everywhere is to override DejaVu's
# B&W emojis that would sometimes show instead of some Color emojis
defaultFonts = {
serif = [ "Noto Serif" "Noto Color Emoji" ];
sansSerif = [ "Noto Sans" "Noto Color Emoji" ];
monospace = [ "FiraCode Nerd Font" "Noto Color Emoji" ];
emoji = [ "Noto Color Emoji" ];
};
};
};
}