Compare commits

...

6 Commits

Author SHA1 Message Date
66e7dab5aa
chore: update netbird to 0.29.4
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 15:06:11 +05:30
a6fc984ceb
fix: use ter-u28 as the tty font on initial boot
At least until this gets merged: https://github.com/NixOS/nixpkgs/pull/299456

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 15:03:02 +05:30
10c26f143d
fix: switch to the latest testing kernel on thonkpad
The new Intel Core Ultra does not work that well with older kernel versions
especially since the initial support was added in 6.8. Currently, the testing
kernel is much more stable that the latest package on this processor.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 15:01:29 +05:30
f2dcc81256
chore: remove intel video driver from xserver
Seems to be not required for the current setup.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 14:59:32 +05:30
49d65b9cb4
chore: cleanup thonkpad and use mesa git from chaotic/nyx
Trying out the experimental mesa drivers for the latest Intel Xe support on Wayland

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 14:58:24 +05:30
25ecb1c367
chore: pin nix to 2.23
A security issue currently plagues nix_git package, along with some other issues cropping up
in the newer versions. So we'll stick to the last stable, bug-free nix version for a while.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-22 14:56:53 +05:30
6 changed files with 30 additions and 20 deletions

View File

@ -24,7 +24,7 @@
config = {
console = {
font = "Lat2-Terminus16";
font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
keyMap = lib.mkDefault "us";
useXkbConfig = true;
};

View File

@ -4,8 +4,7 @@
lib,
pkgs,
...
}:
{
}: {
options.snowflake.core.nix = {
enable = lib.mkEnableOption "Enable core nix configuration";
};
@ -28,7 +27,10 @@
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
# Use the latest, unstable version of nix.
package = pkgs.nixVersions.git;
package = pkgs.nixVersions.nix_2_23;
# TODO: switch back to nix git. Current version has a security issue that allows
# remote code execution.
# package = pkgs.nixVersions.git;
settings = {
# Accept flake configuration without prompting.

View File

@ -14,7 +14,6 @@
xserver = {
enable = true;
videoDrivers = ["intel"];
};
displayManager.sddm = {
enable = true;

View File

@ -1,9 +1,9 @@
_: _self: super: let
version = "0.28.8";
version = "0.29.4";
in {
netbird = super.netbird.override {
buildGoModule = args:
super.buildGoModule (
super.buildGo123Module (
args
// {
inherit version;
@ -11,9 +11,9 @@ in {
owner = "netbirdio";
repo = "netbird";
rev = "v${version}";
hash = "sha256-DfY8CVBHgE/kLALKNzSgmUxM0flWLesU0XAgVsHHLKc=";
hash = "sha256-W71CE83r/RcPdBjzfT+FSh72UcKcTmIuagkrC1eaeNk=";
};
vendorHash = "sha256-CqknRMijAkWRLXCcIjRBX2wB64+RivD/mXq28TqzNjg=";
vendorHash = "sha256-CD34U+Z8bUKN0Z4nxIVC+mYDp71Q8q1bmUypRDGgb3U=";
ldflags = [
"-s"
"-w"

View File

@ -6,8 +6,13 @@
}: {
imports = [./hardware.nix];
chaotic.mesa-git.enable = true;
hardware.cpu.intel.updateMicrocode = true;
hardware.enableRedistributableFirmware = true;
hardware.graphics.extraPackages = with pkgs; [
mesa_git.opencl
];
networking.hostName = "thonkpad";
networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
@ -37,7 +42,6 @@
extraPackages = with pkgs; [
easyeffects
glibc
logseq
obsidian
piper
# terraform

View File

@ -1,4 +1,8 @@
_: {
{
lib,
pkgs,
...
}: {
boot = {
initrd = {
availableKernelModules = [
@ -9,20 +13,21 @@ _: {
"sd_mod"
];
luks.devices."cryptroot".device = "/dev/disk/by-uuid/9de352ea-128f-4d56-a720-36d81dfd9b92";
luks.devices."cryptroot".bypassWorkqueues = true;
};
kernelModules = [
"kvm-intel"
"thinkpad_acpi"
# "iwlwifi"
"iwlwifi"
"xe"
];
kernelPackages = lib.mkDefault pkgs.linuxPackages_testing;
kernelParams = [
"quiet"
"xe.force_probe=7d55"
# NixOS produces many wakeups per second, which is bad for battery life.
# This disables the timer tick on the last 7 cores.
"nohz_full=14-21"
"i915.force_probe=!7d55"
"xe.force_probe=7d55"
# "resume_offset=2465529"
"intel_pstate=active"
"thinkpad_acpi.fan_control=1"
];
# resumeDevice = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d";
};