small laptop tweaks
This commit is contained in:
6 files changed
+67
-41
No files matched your search
@@ -61,5 +61,10 @@ in {
|
||||
gtk2.configLocation = "${config.xdg.configHome}/.gtkrc-2.0"; # prevents file conflicts between this and other parts of the nix config
|
||||
gtk2.force = true;
|
||||
};
|
||||
|
||||
xdg.desktopEntries.ocr = {
|
||||
name = "OCR image";
|
||||
exec = "${pkgs.writeScript "ocr" "${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.tesseract}/bin/tesseract - - | ${pkgs.wl-clipboard}/bin/wl-copy"}";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -109,9 +109,9 @@
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.user.enabled" = true;
|
||||
"browser.newtabpage.activity-stream.widgets.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.discoverystream.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "custom";
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.customWallpaper.uploadedPreviously" = true;
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.customWallpaper.uuid" = "c521696c-f5c9-4932-998f-8d0c245c4eb0";
|
||||
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "gradient-orange";
|
||||
#"browser.newtabpage.activity-stream.newtabWallpapers.customWallpaper.uploadedPreviously" = true;
|
||||
#"browser.newtabpage.activity-stream.newtabWallpapers.customWallpaper.uuid" = "c521696c-f5c9-4932-998f-8d0c245c4eb0";
|
||||
"floorp.design.configs" = {
|
||||
globalConfigs = {
|
||||
userInterface = "proton";
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user