1
Fork 0
dotfiles/.bauke/nix/stardust/system.nix

120 lines
2.2 KiB
Nix
Raw Normal View History

2023-02-01 13:31:56 +00:00
# General system configuration.
{ pkgs, ... }:
{
boot = {
loader = {
efi.canTouchEfiVariables = true;
efi.efiSysMountPoint = "/boot/efi";
systemd-boot.enable = true;
};
};
console = {
keyMap = "be-latin1";
};
environment = {
extraOutputsToInstall = [ "dev" ];
shells = [ pkgs.zsh ];
};
fonts = {
fontconfig = {
defaultFonts = {
monospace = [ "Hasklig" "Victor Mono" "DejaVu Sans Mono" ];
sansSerif = [ "Inter" "DejaVu Sans" ];
serif = [ "Inter" "DejaVu Sans" ];
};
};
2023-11-30 13:45:45 +00:00
packages = with pkgs; [
2023-05-15 09:07:17 +00:00
corefonts
font-awesome
hasklig
inter
iosevka
victor-mono
(nerdfonts.override { fonts = [ "Hasklig" ]; })
];
};
2023-02-01 13:31:56 +00:00
hardware = {
2023-09-06 09:50:06 +00:00
nvidia = {
modesetting.enable = true;
};
2023-02-01 13:31:56 +00:00
opengl = {
driSupport32Bit = true;
enable = true;
};
opentabletdriver = {
enable = true;
};
pulseaudio = {
enable = false;
};
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_GB.UTF-8";
LC_IDENTIFICATION = "en_GB.UTF-8";
LC_MEASUREMENT = "en_GB.UTF-8";
LC_MONETARY = "en_GB.UTF-8";
LC_NAME = "en_GB.UTF-8";
LC_NUMERIC = "en_GB.UTF-8";
LC_PAPER = "en_GB.UTF-8";
LC_TELEPHONE = "en_GB.UTF-8";
LC_TIME = "en_GB.UTF-8";
};
};
networking = {
hostName = "stardust";
2023-10-17 10:05:08 +00:00
networkmanager = {
enable = true;
# There is an issue with NetworkManager and nameservers not being added to
# "/etc/resolv.conf" on `nixos-rebuild switch`, that's why they're
# specified twice. To make it work, right-click the NetworkManager tray
# icon and toggle "Enable Networking", then check "/etc/resolv.conf" that
# this IP is at the top.
insertNameservers = [
"192.168.0.202"
];
};
nameservers = [
"192.168.0.202"
];
2023-02-01 13:31:56 +00:00
};
security = {
rtkit.enable = true;
};
sound = {
enable = true;
};
time = {
timeZone = "Europe/Brussels";
};
2023-06-07 13:32:48 +00:00
virtualisation = {
podman = {
enable = true;
defaultNetwork.settings = {
dns_enabled = true;
};
};
2023-06-13 17:47:39 +00:00
virtualbox = {
host.enable = true;
};
2023-06-07 13:32:48 +00:00
};
2023-02-01 13:31:56 +00:00
}