chanage hosts in homeConfigs to comply with new layout
This commit is contained in:
37
homeConfigs/hosts/laptop.nix
Normal file
37
homeConfigs/hosts/laptop.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.waybar.settings.mainBar = {
|
||||
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
|
||||
"custom/dgpu" = {
|
||||
exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\"";
|
||||
exec = "echo \" on |\"";
|
||||
interval-if = 10;
|
||||
interval = 100;
|
||||
};
|
||||
|
||||
"custom/fans" = {
|
||||
exec-if = "test \"$(cat /sys/class/hwmon/hwmon6/fan1_input)\" -gt 0 -o \"$(cat /sys/class/hwmon/hwmon6/fan2_input)\" -gt 0";
|
||||
exec = "echo \" \" \"$(cat /sys/class/hwmon/hwmon6/fan1_input).$(cat /sys/class/hwmon/hwmon6/fan2_input) |\"";
|
||||
interval = 1;
|
||||
interval-if = 1;
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bind = [
|
||||
", XF86Launch1, exec, hyprlock"
|
||||
", XF86Launch4, exec, pkill activate-linux"
|
||||
];
|
||||
monitor= [
|
||||
"eDP-1, 1920x1080@120, 0x0, 1"
|
||||
"HDMI-A-1, 1920x1080@60, auto, auto"
|
||||
];
|
||||
env = [ "AQ_DRM_DEVICES,/dev/dri/card1"];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
stremio
|
||||
blender
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user