dotfiles-nix/nix/system/default.nix

118 lines
2.1 KiB
Nix
Raw Normal View History

2025-01-21 02:43:35 +00:00
{ config, pkgs, ... }:
{
2025-01-23 14:26:51 +00:00
# allow flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2025-01-21 02:43:35 +00:00
2025-01-24 18:06:22 +00:00
# hostname
networking.hostName = config.hostName;
2025-01-21 02:43:35 +00:00
# common system packages
environment.systemPackages = with pkgs; [
# editor
vim
# lib
libz
openssl
# shell
bash
zsh
# utility
acpi
2025-02-02 02:54:07 +00:00
alsa-utils
2025-01-21 02:43:35 +00:00
curl
2025-01-24 15:07:23 +00:00
dig
2025-01-23 19:53:38 +00:00
file
2025-01-21 02:43:35 +00:00
htop
2025-01-25 00:28:11 +00:00
killall
2025-02-02 02:54:07 +00:00
mlocate
2025-01-21 02:43:35 +00:00
openssh
p7zip
ripgrep
2025-01-22 15:06:45 +00:00
sbctl
2025-01-21 02:43:35 +00:00
tree
unzip
wget
];
2025-01-21 03:03:03 +00:00
# use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
2025-01-21 02:43:35 +00:00
# timezone
2025-01-21 15:34:59 +00:00
time.timeZone = "America/New_York";
2025-01-21 02:43:35 +00:00
# locale
i18n.defaultLocale = "en_US.UTF-8";
2025-01-23 14:26:51 +00:00
# services
networking.networkmanager.enable = true;
services.fwupd.enable = true;
services.libinput.enable = true;
services.printing.enable = true;
2025-01-21 02:43:35 +00:00
services.pipewire = {
2025-01-23 14:26:51 +00:00
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
2025-01-21 02:43:35 +00:00
};
2025-02-08 01:58:53 +00:00
# docker
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs";
2025-01-21 02:43:35 +00:00
# create user account
users.users.${config.user} = {
isNormalUser = true;
description = config.fullName;
2025-02-08 01:58:53 +00:00
extraGroups = [ "networkmanager" "wheel" "sys" "video" "audio" "docker" ];
2025-01-21 02:43:35 +00:00
home = config.homePath;
shell = pkgs.zsh;
};
# certs
security.pki.certificateFiles = [
2025-01-23 14:26:51 +00:00
../../files/certs/freyanet.crt
2025-01-21 02:43:35 +00:00
];
# fonts
fonts.packages = with pkgs; [
2025-02-05 18:12:46 +00:00
corefonts
2025-01-21 02:43:35 +00:00
dejavu_fonts
fira-code
fira-code-symbols
jetbrains-mono
material-icons
nerd-fonts.fira-code
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
twemoji-color-font
2025-02-05 18:12:46 +00:00
vistafonts
2025-01-21 02:43:35 +00:00
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
serif = [
"Twemoji"
"DejaVu Serif"
];
sansSerif = [
"Twemoji"
"DejaVu Sans"
];
monospace = [
"Fira Code"
"FiraCode Nerd Font Mono"
"Font Awesome 6 Pro Regular"
"Twemoji"
"DejaVu Sans Mono"
];
emoji = [
"Twemoji"
"Noto Color Emoji"
];
};
};
}