From e17387e800cd80e4ea1dc23d15ff63f71c5c255a Mon Sep 17 00:00:00 2001 From: foxora Date: Fri, 6 Mar 2026 15:18:41 +0000 Subject: [PATCH] switched to latest mainline kernel --- hosts/delphinus/configuration.nix | 85 ++++++++++++++++++++++ hosts/delphinus/hardware-configuration.nix | 26 +++++++ hosts/nixarawrui/default.nix | 4 +- 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 hosts/delphinus/configuration.nix create mode 100644 hosts/delphinus/hardware-configuration.nix diff --git a/hosts/delphinus/configuration.nix b/hosts/delphinus/configuration.nix new file mode 100644 index 0000000..10d1bdb --- /dev/null +++ b/hosts/delphinus/configuration.nix @@ -0,0 +1,85 @@ +{ + config, + lib, + pkgs, + ... +}: { + imports = [ + ./hardware-configuration.nix + ]; + + networking.hostName = "delphinus"; + + boot = { + kernelPackages = pkgs.linuxPackages_latest; + loader = { + timeout = 10; + grub = { + enable = true; + forceInstall = true; + device = "nodev"; + extraConfig = '' + serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1; + terminal_input serial; + terminal_output serial + ''; + }; + }; + }; + + networking = { + networkmanager.enable = true; + useDHCP = false; + usePredictableInterfaceNames = false; + nftables.enable = true; + + firewall = { + enable = true; + allowedTCPPorts = [6767]; + allowedUDPPorts = []; + }; + }; + + time.timeZone = "Europe/Amsterdam"; + + i18n.defaultLocale = "en_US.UTF-8"; + console = { + font = "Lat2-Terminus16"; + keyMap = "us"; + }; + + users.users.fox = { + isNormalUser = true; + extraGroups = ["wheel"]; + packages = with pkgs; [ + tree + ]; + + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPGwai/gXJOJZQujpk0BSwdjSe2as3pT567bYhzjaQ4M aurora@nixarawrui" + ]; + }; + + services = { + openssh = { + enable = true; + + ports = [6767]; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = ["fox"]; + UseDns = false; # disable rDNS lookup + X11Forwarding = false; + }; + }; + }; + + environment.systemPackages = with pkgs; [ + neovim + git + wget + ]; + + system.stateVersion = "25.11"; +} diff --git a/hosts/delphinus/hardware-configuration.nix b/hosts/delphinus/hardware-configuration.nix new file mode 100644 index 0000000..b5f284f --- /dev/null +++ b/hosts/delphinus/hardware-configuration.nix @@ -0,0 +1,26 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/sda"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/sdb"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/hosts/nixarawrui/default.nix b/hosts/nixarawrui/default.nix index 8d5ae58..fb08d82 100644 --- a/hosts/nixarawrui/default.nix +++ b/hosts/nixarawrui/default.nix @@ -21,7 +21,9 @@ # kernelPackages = upkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4; # TODO: idk make this a toggle or smth idfk - kernelPackages = upkgs.linuxPackages_zen; + # kernelPackages = upkgs.linuxPackages_zen; + # FIX: it said my disk was full + kernelPackages = upkgs.linuxPackages_latest; kernelModules = ["v4l2loopback"]; extraModulePackages = with kernelPackages; [v4l2loopback];