small laptop tweaks

This commit is contained in:
greyweather committed 2026-10-07 01:03:43 +01:00
1 parent 6d643646eb
commit 11c396e244
6 files changed
+67 -41

No files matched your search

+41 -16
View File
@@ -61,6 +61,9 @@
extraPackages = with pkgs; [
moonlight-qt
github-desktop
godot
libreoffice
sysfsutils
];
};
};
@@ -69,25 +72,33 @@
nixos-icons.enable = false;
};
nix.buildMachines = [
{
hostName = "nixremote";
systems = [ "x86_64-linux" "i686-linux" ];
protocol = "ssh-ng";
maxJobs = 250;
speedFactor = 1000;
supportedFeatures = [ "benchmark" "kvm" "big-parallel" ];
}
];
nix = {
buildMachines = [
{
hostName = "nixremote";
systems = [ "x86_64-linux" "i686-linux" ];
protocol = "ssh-ng";
maxJobs = 250;
speedFactor = 1000;
supportedFeatures = [ "benchmark" "kvm" "big-parallel" ];
}
];
nix.distributedBuilds = true;
nix.settings.builders-use-substitutes = true;
distributedBuilds = true;
settings.builders-use-substitutes = true;
};
services.blueman.enable = true;
services = {
blueman.enable = true;
services.tailscale = {
enable = true;
openFirewall = true;
tailscale = {
enable = true;
openFirewall = true;
};
udev.extraRules = ''
ACTION=="add|bind", SUBSYSTEM=="platform", DRIVER=="thinkpad_acpi", RUN+="${pkgs.coreutils}/bin/chgrp fan_ctl /proc/acpi/ibm/fan", RUN+="${pkgs.coreutils}/bin/chmod 0664 /proc/acpi/ibm/fan"
'';
};
boot = {
@@ -99,6 +110,17 @@
"rd.udev.log_level=3"
"rd.systemd.show_status=auto"
];
kernelModules = [
"thinkpad_acpi"
];
extraModprobeConfig = ''
options thinkpad_acpi fan_control=1
'';
};
users = {
users.grey.extraGroups = [ "fan_ctl" ];
groups.fan_ctl = { };
};
};
@@ -114,6 +136,7 @@
extraPackages = with pkgs; [
jetbrains.clion
jetbrains.idea
jetbrains.rider
xarchiver
kdePackages.kate
loupe
@@ -164,6 +187,8 @@
"x-scheme-handler/https" = [ "floorp.desktop" ];
"text/calendar" = [ "thunderbird.desktop" ];
};
dataFile."icons/hicolor/512x512/apps/nix-snowflake.png".source = "${pkgs.nixos-icons}/share/icons/hicolor/512x512/apps/nix-snowflake.png";
};
programs.ssh = {