i3status rust

This commit is contained in:
Cyryl Płotnicki 2022-04-02 08:14:30 +01:00
parent f98d9ec028
commit 9fdccf93e4
4 changed files with 50 additions and 34 deletions

View file

@ -3,9 +3,10 @@
imports = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
./custom-kernel.nix
./hardware-configuration.nix
./tailscale-foureighty.nix
./custom-kernel.nix
./thermal.nix
../../backups.nix
../../boot.nix
../../common.nix
@ -37,38 +38,6 @@
};
hardware.trackpoint.enable = true;
services.hardware.bolt.enable = true;
boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1";
services.thinkfan = {
enable = true;
levels = [
[ 0 0 55 ]
[ 1 48 60 ]
[ 2 50 61 ]
[ 3 52 63 ]
[ 6 56 65 ]
[ 7 60 85 ]
[ "level full-speed" 80 32767 ]
];
sensors = [
{
type = "hwmon";
query = "/sys/class/hwmon";
name = "coretemp";
indices = [ 1 2 3 ];
}
{
type = "hwmon";
query = "/sys/devices/platform/thinkpad_hwmon/hwmon";
indices = [ 1 ];
}
{
type = "tpacpi";
query = "/proc/acpi/ibm/thermal";
indices = [ 0 ];
}
];
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.video.hidpi.enable = lib.mkDefault true;
services.fprintd = { enable = true; };

View file

@ -0,0 +1,35 @@
{ config, pkgs, lib, ... }: {
boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1";
services.thinkfan = {
enable = true;
levels = [
[ 0 0 55 ]
[ 1 48 60 ]
[ 2 50 61 ]
[ 3 52 63 ]
[ 6 56 65 ]
[ 7 60 85 ]
[ "level full-speed" 80 32767 ]
];
sensors = [
{
type = "hwmon";
query = "/sys/class/hwmon";
name = "coretemp";
indices = [ 1 2 3 ];
}
{
type = "hwmon";
query = "/sys/devices/platform/thinkpad_hwmon/hwmon";
indices = [ 1 ];
}
{
type = "tpacpi";
query = "/proc/acpi/ibm/thermal";
indices = [ 0 ];
}
];
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }: {
imports = [
./i3.nix
./i3-status.nix
./i3status-rust.nix
./dunst.nix
./rofi.nix
./kdeconnect.nix

View file

@ -0,0 +1,12 @@
{ config, pkgs, ... }: {
programs.i3status-rust = {
enable = true;
bars = {
top = {
icons = "awesome5";
theme = "solarized-dark";
};
};
};
}