Add display config for missing devices

This commit is contained in:
Evie Litherland-Smith 2024-09-12 07:12:49 +01:00
parent 3c043c3899
commit 887b54a6d8
3 changed files with 55 additions and 2 deletions

View file

@ -3,6 +3,32 @@
imports = [ ./laptop.nix ]; imports = [ ./laptop.nix ];
home-manager.users.${username} = { home-manager.users.${username} = {
home.packages = [ pkgs.prusa-slicer ]; home.packages = [ pkgs.prusa-slicer ];
wayland.windowManager.sway.config = {
output."eDP-1".scale = "1.25";
workspaceOutputAssign = [
{
output = "eDP-1";
workspace = "1";
}
];
};
services.kanshi = {
enable = true;
settings = [
{
profile = {
name = "default";
outputs = [
{
criteria = "eDP-1";
scale = 1.25;
position = "0,0";
}
];
};
}
];
};
}; };
hardware.amdgpu.initrd.enable = true; hardware.amdgpu.initrd.enable = true;
} }

View file

@ -3,6 +3,9 @@
imports = [ ./desktop.nix ]; imports = [ ./desktop.nix ];
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ ./home/work.nix ]; imports = [ ./home/work.nix ];
wayland.windowManager.sway.config = {
output."Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
};
}; };
boot = { boot = {
loader.efi.efiSysMountPoint = "/boot/efi"; loader.efi.efiSysMountPoint = "/boot/efi";

View file

@ -8,7 +8,6 @@
imports = [ ./desktop.nix ]; imports = [ ./desktop.nix ];
home-manager.users.${username} = { home-manager.users.${username} = {
home.packages = with pkgs; [ home.packages = with pkgs; [
kdePackages.ktorrent
krita krita
kdenlive kdenlive
helvum helvum
@ -33,7 +32,32 @@
input-overlay input-overlay
]; ];
}; };
xdg.configFile."autostart/org.kde.ktorrent.desktop".source = "${pkgs.kdePackages.ktorrent}/share/applications/org.kde.ktorrent.desktop"; wayland.windowManager.sway.config = {
output = {
"Microstep MSI G27CQ4 E2 Unknown" = {
mode = "2560x1440@120Hz";
scale = "1.25";
position = "1920 0";
adaptive_sync = "on";
};
"Acer Technologies ED270R TJMEE0043W01" = {
mode = "1920x1080@120Hz";
position = "0 140";
adaptive_sync = "off";
};
};
workspaceOutputAssign = [
{
output = "DP-1";
workspace = "2";
}
{
output = "DP-2";
workspace = "1";
}
];
startup = [ { command = "${pkgs.xorg.xrandr}/bin/xrandr --output DP-1 --primary"; } ];
};
}; };
boot = { boot = {
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];