specialize
This commit is contained in:
@@ -34,6 +34,20 @@
|
||||
|
||||
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
||||
|
||||
specialisation = {
|
||||
docked.configuration = {
|
||||
hardware.nvidia.prime.sync.enable = true;
|
||||
|
||||
home-manager.users.nathan.wayland.windowManager.hyprland.extraConfig = ''
|
||||
monitor=eDP-1,1920x1080@300,0x0,1
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.nathan.wayland.windowManager.hyprland.extraConfig = lib.mkIf (config.specialisation != {}) ''
|
||||
monitor=eDP-1,1920x1080@60,0x0,1
|
||||
'';
|
||||
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
|
||||
@@ -56,7 +70,7 @@
|
||||
# WARNING: sync and offload are mutually exclusive.
|
||||
# You can only pick one!!
|
||||
#sync.enable = true;
|
||||
offload = {
|
||||
offload = lib.mkIf (config.specialisation != {}) {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user