switched to latest mainline kernel

This commit is contained in:
foxora 2026-03-06 15:18:41 +00:00
parent e29232d96c
commit e17387e800
3 changed files with 114 additions and 1 deletions

View file

@ -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";
}

View file

@ -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";
}

View file

@ -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];