Files
nixos-setup/modules/os/core.nix
T
2024-04-19 14:55:35 -04:00

86 lines
2.0 KiB
Nix

{ hostName, firewall, user }:
{ pkgs, ... }:
{
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
networking.hostName = hostName; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
networking.firewall = firewall;
# Set your time zone.
time.timeZone = "America/Toronto";
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
# System Packages
programs.zsh.enable = true;
programs.nix-ld.enable = true;
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = "client";
environment.systemPackages = with pkgs; [
zsh
git
vscode
nil
docker-compose
usbutils
wget
ollama
appimage-run
htop
nfs-utils
cachix
rocmPackages.rpp
rocmPackages.rocm-smi
glib
glibc
glib-networking
gnomeExtensions.vitals
(import (fetchTarball "https://install.devenv.sh/latest")).default
];
boot.kernelPackages = pkgs.linuxPackages_latest;
services.nfs.server.enable = true;
nix.settings.trusted-substituters = [
"https://cache.flox.dev"
"https://devenv.cachix.org"
];
nix.settings.trusted-users = [ "root" user.name ];
nix.settings.trusted-public-keys = [
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
# Default Session Variables
environment.sessionVariables = rec {
};
# Exclude Gnome packages
environment.gnome.excludePackages = [
pkgs.gnome-tour
pkgs.gnome-console
];
services.xserver.excludePackages = [
pkgs.xterm
];
# Fonts
fonts = {
packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
];
fontconfig = {
enable = true;
defaultFonts = {
serif = [ "FiraCode" "DroidSansMono" ];
sansSerif = [ "FiraCode" "DroidSansMono" ];
monospace = [ "FiraCode" ];
};
};
};
}