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 ];
|
|
|
|
};
|
|
|
|
|
2023-02-11 10:02:42 +00:00
|
|
|
fonts = {
|
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
2024-03-04 15:19:38 +00:00
|
|
|
monospace = [ "Hasklig" ];
|
|
|
|
sansSerif = [ "Inter" ];
|
|
|
|
serif = [ "Inter" ];
|
2023-02-11 10:02:42 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-30 13:45:45 +00:00
|
|
|
packages = with pkgs; [
|
2023-05-15 09:07:17 +00:00
|
|
|
corefonts
|
2024-02-29 11:54:22 +00:00
|
|
|
font-awesome
|
2023-02-11 10:02:42 +00:00
|
|
|
hasklig
|
|
|
|
inter
|
|
|
|
iosevka
|
2024-03-28 18:20:30 +00:00
|
|
|
noto-fonts-color-emoji
|
2023-02-11 10:02:42 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2024-03-29 18:49:43 +00:00
|
|
|
openrazer = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2023-02-01 13:31:56 +00:00
|
|
|
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.
|
2024-02-29 21:27:30 +00:00
|
|
|
insertNameservers = [ "192.168.0.202" ];
|
2023-10-17 10:05:08 +00:00
|
|
|
};
|
2024-02-29 21:27:30 +00:00
|
|
|
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
|
|
|
}
|