Wed Jun 5 02:31:58 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-05 14:31:58 +02:00
parent 38b8b76b08
commit 9447a15776
5 changed files with 20 additions and 20 deletions

View File

@ -50,15 +50,8 @@
output = "eDP-1"; output = "eDP-1";
height = 28; height = 28;
margin = "0 0 5 0"; margin = "0 0 5 0";
temperature.hwmon-path = "/sys/class/hwmon/hwmon4/temp1_input";
}; };
programs.alacritty.settings.font.size = 13; programs.alacritty.settings.font.size = 13;
programs.waybar.style = ''
#wireplumber {
background-color: #023269;
}
#tray {
background-color: #1f2430;
}
'';
} }

View File

@ -29,7 +29,10 @@
name = "Papirus"; name = "Papirus";
gtk.iconTheme.package = pkgs.papirus-icon-theme; gtk.iconTheme.package = pkgs.papirus-icon-theme;
}; };
programs.waybar.settings.mainBar = { output = "DP-2"; }; programs.waybar.settings.mainBar = {
output = "DP-2";
temperature.hwmon-path = "/sys/class/hwmon/hwmon3/temp2_input";
};
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
monitor = [ monitor = [
"DP-3,preferred,0x550,1" "DP-3,preferred,0x550,1"
@ -53,5 +56,11 @@
#workspaces { #workspaces {
margin: 4px 9px; margin: 4px 9px;
} }
#wireplumber {
background-color: #1f2430;
}
#tray {
background-color: #023269;
}
''; '';
} }

View File

@ -68,8 +68,8 @@
format = "{used:0.2f}G"; format = "{used:0.2f}G";
}; };
temperature = { temperature = {
hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input"; # Override with client-specific value
thermal-zone = 6; # hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
interval = 5; interval = 5;
critical-threshold = 80; critical-threshold = 80;
format = "{temperatureC}°C"; format = "{temperatureC}°C";
@ -138,8 +138,6 @@
#window, #window,
#clock, #clock,
#battery,
#cpu,
#memory, #memory,
#disk, #disk,
#temperature, #temperature,
@ -147,6 +145,8 @@
#network, #network,
#pulseaudio, #pulseaudio,
#wireplumber, #wireplumber,
#cpu.cpu2,
#memory,
#tray { #tray {
padding: 0 12px; padding: 0 12px;
border-radius: 7px; border-radius: 7px;
@ -157,9 +157,9 @@
} }
#clock.clock2, #clock.clock2,
#cpu.cpu2,
#memory,
#tray, #tray,
#cpu,
#battery,
#temperature { #temperature {
background-color: #023269; background-color: #023269;
} }

View File

@ -73,7 +73,7 @@ in
serviceConfig.ExecStart = "${pkgs.linuxPackages.nvidia_x11.bin}/bin/nvidia-smi"; serviceConfig.ExecStart = "${pkgs.linuxPackages.nvidia_x11.bin}/bin/nvidia-smi";
}; };
specialisation = { specialisation = {
on-the-go.configuration = { docked.configuration = {
system.nixos.tags = [ "docked" ]; system.nixos.tags = [ "docked" ];
hardware.nvidia = { hardware.nvidia = {
powerManagement.finegrained = pkgs.lib.mkForce false; powerManagement.finegrained = pkgs.lib.mkForce false;
@ -84,6 +84,7 @@ in
}; };
}; };
services.udev.packages = [ pkgs.yubikey-personalization ]; services.udev.packages = [ pkgs.yubikey-personalization ];
services.logind.extraConfig = ''HandlePowerKey=ignore'';
# Calendar # Calendar
programs.dconf.enable = true; programs.dconf.enable = true;

View File

@ -10,10 +10,7 @@
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
services.pcscd.enable = true; services.pcscd.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ]; services.udev.packages = [ pkgs.yubikey-personalization ];
services.logind.extraConfig = '' services.logind.extraConfig = ''HandlePowerKey=suspend'';
# dont shutdown when power button is short-pressed
HandlePowerKey=suspend
'';
# Calendar # Calendar
programs.dconf.enable = true; programs.dconf.enable = true;