some autorandr

This commit is contained in:
2023-09-17 07:06:19 +03:00
parent 9f32c033a5
commit 74d3b2cb23
3 changed files with 31 additions and 5 deletions

View File

@@ -3,7 +3,9 @@
pkgs,
myData,
...
}: {
}: let
randr = import ./randr.nix;
in {
zfs-root = {
boot = {
enable = true;
@@ -101,6 +103,29 @@
};
};
home-manager.users.motiejus = {pkgs, ...}: {
programs.autorandr.profiles = {
dualhome = {
fingerprint = {inherit (randr) DP-3 DP-4;};
config = {
eDP-1.enable = false;
DP-4 = {
enable = true;
mode = "2560x1440";
pos = "2560x0";
primary = true;
};
DP-3 = {
enable = true;
mode = "2560x1440";
position = "0x0";
crtc = 2;
};
};
};
};
};
environment.systemPackages = with pkgs; [
iw
texlive.combined.scheme-medium