config/hosts/nord/default.nix

117 lines
3.6 KiB
Nix
Raw Normal View History

2023-03-09 07:27:50 +01:00
{ config, pkgs, lib, ... }:
{
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2023-03-11 00:30:24 +01:00
services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = "pbsds";
# tmp: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
2023-03-09 07:27:50 +01:00
2023-03-11 00:30:24 +01:00
boot.kernelPackages = pkgs.linuxPackages_latest; # amdgpu audio fix when at 4k@60fps
2023-03-09 07:27:50 +01:00
2023-03-11 00:30:24 +01:00
imports = [
./hardware-configuration.nix
2023-03-09 09:28:11 +01:00
../../hardware/rocm.nix
2023-03-09 07:27:50 +01:00
../../hardware/opengl-intel.nix
2023-03-11 00:30:24 +01:00
../../users # home-manager
../../users/pbsds
2023-03-09 09:28:11 +01:00
2023-03-12 05:14:28 +01:00
../../profiles/mounts/reidun-nfs.nix
../../profiles/shell/base.nix
../../profiles/shell/archives.nix
../../profiles/shell/nix-utils.nix
#../../profiles/shell/binfmt-emu.nix
../../profiles/desktop/gnome # configures gdm
#../../profiles/desktop/sound/alsa.nix
2023-03-11 15:59:56 +01:00
#../../profiles/desktop/sound/pulseaudio.nix
../../profiles/desktop/sound/pipewire.nix
2023-03-09 09:28:11 +01:00
2023-03-11 03:39:06 +01:00
../../profiles/desktop/steam.nix
2023-03-12 05:14:28 +01:00
../../profiles/desktop/flatpak.nix
2023-03-09 09:28:11 +01:00
2023-03-11 03:39:06 +01:00
../../profiles/remote-builders
2023-03-09 07:27:50 +01:00
#../../profiles/autossh-reverse-tunnels
2023-03-11 00:30:24 +01:00
#../../profiles/domeneshop-dyndns # handled by noximilien
2023-03-09 07:27:50 +01:00
];
2023-03-12 05:14:28 +01:00
networking.firewall.allowedTCPPorts = [ 57621 ]; # spotify local discovery
2023-03-09 07:27:50 +01:00
services.thermald.enable = true;
# Virtualization
#virtualisation.podman.enable = true;
#virtualisation.podman.dockerCompat = true; # alias docker to podman
2023-03-12 05:14:28 +01:00
#virtualisation.oci-containers.backend = "podman"; # default
2023-03-09 07:27:50 +01:00
# Networking
networking.networkmanager.enable = true;
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.interfaces.eno1.ipv4.addresses = [
{ address = "192.168.1.8"; prefixLength = 24; }
];
2023-03-09 07:56:07 +01:00
networking.defaultGateway.address = "192.168.1.254";
networking.defaultGateway.interface = "eno1";
2023-03-09 07:27:50 +01:00
networking.nameservers = [
"192.168.1.254"
"8.8.8.8"
"1.1.1.1"
];
#networking.useDHCP = true;
#TODO: avahi? resolved? https://git.pvv.ntnu.no/Drift/pvv-nixos-config/src/main/base.nix#L15-L18
# Installed system packages
environment.systemPackages = with pkgs; [
cage
2023-03-12 05:14:28 +01:00
weston
dialog
zenith
2023-03-09 07:27:50 +01:00
vimix-gtk-themes
flat-remix-icon-theme
feh
2023-03-19 04:23:38 +01:00
zotero
2023-03-09 07:27:50 +01:00
firefox
];
# TODO: remove? Move?
programs.dconf.enable = true;
# OpenSSH
services.openssh.enable = true;
services.openssh.forwardX11 = true;
# System fonts
# Nice to have when X-forwading on headless machines
# TODO: move?
2023-03-12 05:14:28 +01:00
hardware.video.hidpi.enable = true; # highdpi (for nord only)
#fonts.fontconfig.hinting.enable = true; # lowdpi
fonts.fontDir.enable = true; # creates /run/current-system/sw/share/X11/fonts
fonts.enableDefaultFonts = true; # dejavu, freefont, gyre, liberation, unifont, noto-fonts-emoji
2023-03-09 07:27:50 +01:00
fonts.fonts = with pkgs; [
noto-fonts # includes Cousine
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
];
2023-03-11 00:30:24 +01:00
2023-03-09 07:27:50 +01:00
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
}