Big omen laptop migration

This commit is contained in:
Alexander Derevianko
2025-08-01 21:25:58 +02:00
parent 9bd163a32c
commit 2ed1f0163c
40 changed files with 3012 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
imports = [
./kanshi
];
}
+8
View File
@@ -0,0 +1,8 @@
profile LAPTOP_ONLY {
output eDP-1 enable
}
profile HOME {
output eDP-1 mode 2560x1440 position 480,1440
output DP-3 mode 3440x1440 position 0,0
}
+61
View File
@@ -0,0 +1,61 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.dov.kanshi;
in {
options.dov.kanshi.enable = mkEnableOption "kanshi config";
config = mkIf cfg.enable {
home.packages = with pkgs; [ kanshi ];
services.kanshi = {
enable = true;
settings = [
{
profile = {
name = "default";
outputs = [
{
criteria = "eDP-1";
}
];
};
}
{
profile = {
name = "home";
outputs = [
{
criteria = "eDP-1";
position = "480,1440";
}
{
criteria = "LG Electronics LG ULTRAWIDE 201NTTQC5617";
position = "0,0";
mode = "3440x1440";
}
];
};
}
{
profile = {
name = "reserve-home";
outputs = [
{
criteria = "eDP-1";
position = "480,1440";
}
{
criteria = "DP-5";
position = "0,0";
mode = "3440x1440";
}
];
};
}
];
};
};
}