feat: china adjustments for adrastea

This commit is contained in:
Youwen Wu 2025-07-27 00:02:51 +08:00
parent 55b0db1127
commit e10689d134
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
2 changed files with 31 additions and 26 deletions

View file

@ -12,6 +12,11 @@
networking.hostName = "adrastea"; networking.hostName = "adrastea";
services.mullvad-vpn = {
enable = true;
package = pkgs.mullvad-vpn;
};
liminalOS = { liminalOS = {
flakeLocation = "/home/youwen/.config/liminalOS"; flakeLocation = "/home/youwen/.config/liminalOS";
config.allowUnfree = true; config.allowUnfree = true;
@ -64,23 +69,24 @@
powerManagement.cpuFreqGovernor = "performance"; powerManagement.cpuFreqGovernor = "performance";
time.timeZone = "America/Los_Angeles"; # time.timeZone = "America/Los_Angeles";
time.timeZone = "Asia/Shanghai";
hardware.nvidia = { hardware.nvidia = {
# modesetting.enable = true; modesetting.enable = true;
# powerManagement.enable = true; powerManagement.enable = true;
# powerManagement.finegrained = false; powerManagement.finegrained = false;
# nvidiaSettings = true; # nvidiaSettings = true;
# open = true; open = true;
prime = { # prime = {
amdgpuBusId = "PCI:4:0:0"; # amdgpuBusId = "PCI:4:0:0";
nvidiaBusId = "PCI:1:0:0"; # nvidiaBusId = "PCI:1:0:0";
# offload = { # # offload = {
# enable = true; # # enable = true;
# enableOffloadCmd = true; # # enableOffloadCmd = true;
# # };
# sync.enable = true;
# }; # };
sync.enable = true;
};
}; };
services.keyd = { services.keyd = {
@ -91,10 +97,8 @@
settings = { settings = {
main = { main = {
capslock = "esc"; capslock = "esc";
leftmeta = "leftcontrol"; leftalt = "leftcontrol";
leftalt = "leftmeta";
leftcontrol = "leftalt"; leftcontrol = "leftalt";
rightmeta = "leftalt";
rightalt = "layer(rightalt)"; rightalt = "layer(rightalt)";
}; };
rightalt = { rightalt = {

View file

@ -7,22 +7,23 @@
home.stateVersion = "24.05"; home.stateVersion = "24.05";
wayland.windowManager.hyprland.settings.monitor = lib.mkForce [ wayland.windowManager.hyprland.settings.monitor = lib.mkForce [
"eDP-1,2560x1440@165,0x0,1.6" # "eDP-1,2560x1440@165,0x0,1.6"
# "eDP-1, disable" "eDP-1, disable"
# "HDMI-A-1,2560x1440@144,0x0,1.0" # "HDMI-A-1,2560x1440@144,0x0,1.0"
"HDMI-A-1,1920x1080@60,0x0,1.0"
]; ];
# since we are using this as a "desktop" of sorts, we have no need to save # since we are using this as a "desktop" of sorts, we have no need to save
# power by using optimus. poor performance on external display, so we add # power by using optimus. poor performance on external display, so we add
# this line to force hyprland to use the nvidia GPU only for rendering. can # this line to force hyprland to use the nvidia GPU only for rendering. can
# be removed if only using internal display # be removed if only using internal display
# wayland.windowManager.hyprland.settings.env = [ wayland.windowManager.hyprland.settings.env = [
# "AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0" "AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0"
# ]; ];
# programs.waybar.settings.mainBar.output = "HDMI-A-1"; programs.waybar.settings.mainBar.output = "HDMI-A-1";
programs.waybar.settings.mainBar.output = "eDP-1"; # programs.waybar.settings.mainBar.output = "eDP-1";
# liminalOS.desktop.hyprland.screenlocker.monitor = "HDMI-A-1"; liminalOS.desktop.hyprland.screenlocker.monitor = "HDMI-A-1";
liminalOS.desktop.hyprland.screenlocker.monitor = "eDP-1"; # liminalOS.desktop.hyprland.screenlocker.monitor = "eDP-1";
} }