{ pkgs, lib, ... }: { imports = [ ./hardware-configuration.nix ]; beatific.hostName = "catacomb"; beatific.defaults.tvbSync = false; boot = { loader = { # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) grub.enable = false; # Enables the generation of /boot/extlinux/extlinux.conf generic-extlinux-compatible.enable = true; }; }; system.stateVersion = "22.11"; # Read the usual warning swapDevices = [ { device = "/swap"; size = 1024; } ]; environment.systemPackages = with pkgs; [ lsof # list open files mpv # cli media player smartmontools # provides smartctl usbutils # provides lsusb ]; networking = { hostId = "beeeeee5"; # this must be consistent for ZFS firewall = { enable = true; allowedTCPPorts = [ 139 445 ]; allowedUDPPorts = [ 137 138 ]; }; wireless = { enable = true; networks."mysterious humming noise".psk = "@MHN_PSK@"; environmentFile = "/root/wifi.env"; }; }; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; # To avoid needing an active user session, run a single system instance systemWide = true; }; services.openssh.settings.PasswordAuthentication = true; services.rsyncd.enable = true; users.users.tvb = { uid = 1001; extraGroups = [ "pipewire" ]; packages = [ (pkgs.writeShellScriptBin "yt-dlp" '' exec $HOME/.env/bin/yt-dlp "$@" '') ]; }; users.users.katydid = { isNormalUser = true; uid = 1002; }; nix.settings.cores = 4; }