config/hosts/nixos/nord/configuration.nix

76 lines
2.4 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";
2024-10-19 18:53:16 +02:00
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "pbsds";
2023-03-11 00:30:24 +01:00
# 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
../../../profiles/sshd.nix
#../../../profiles/oci/podman.nix
#../../../profiles/oci/docker.nix
2023-03-09 07:27:50 +01:00
#../../../profiles/vpn-pbsds/tailscale.nix
2024-08-03 21:12:13 +02:00
../../../users/pbsds
../../../users/pbsds/syncthing.nix
2023-03-09 09:28:11 +01:00
../../../profiles/mounts/freon-nfs.nix
../../../profiles/mounts/reidun-nfs.nix
2024-11-15 04:50:06 +01:00
/* ../../../profiles/mounts/meconium-nfs.nix */
/* ../../../profiles/mounts/fridge-nfs.nix */
2023-03-12 05:14:28 +01:00
../../../profiles/shell.nix
2023-03-12 05:14:28 +01:00
2024-10-19 20:40:40 +02:00
../../../profiles/desktop
../../../profiles/desktop/gnome # configures gdm
#../../../profiles/desktop/sound/alsa.nix
#../../../profiles/desktop/sound/pulseaudio.nix
../../../profiles/desktop/sound/pipewire.nix
2023-03-09 09:28:11 +01:00
../../../profiles/desktop/steam.nix
../../../profiles/desktop/flatpak.nix
2023-03-09 09:28:11 +01:00
../../../profiles/known-hosts.nix
#../../../profiles/domeneshop-dyndns.nix # handled by noximilien
2023-03-09 07:27:50 +01:00
];
2024-09-15 22:02:48 +02:00
nix.settings.max-jobs = 1; # this host do be stinky
2023-03-12 05:14:28 +01:00
networking.firewall.allowedTCPPorts = [ 57621 ]; # spotify local discovery
2023-03-09 07:27:50 +01:00
2024-05-31 00:39:40 +02:00
#networking.wireguard.interfaces."wg0".ips = [ "172.22.48.4/24" ]; # fyrkat
2024-02-25 16:04:18 +01:00
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
# TODO: remove? Move?
programs.dconf.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
}