fix(shikane): override existing config file

This commit is contained in:
2026-05-31 17:47:18 +02:00
parent 50d3b38f1e
commit 808936338f

View File

@@ -11,57 +11,60 @@
config = lib.mkIf config.shikane.enable { config = lib.mkIf config.shikane.enable {
home.packages = with pkgs; [ (config.nixgl.wrap wdisplays) ]; home.packages = with pkgs; [ (config.nixgl.wrap wdisplays) ];
services.shikane.enable = true; services.shikane.enable = true;
home.file.".config/shikane/config.toml".text = '' home.file.".config/shikane/config.toml" = {
[[profile]] force = true;
name = "work" text = ''
[[profile]]
name = "work"
[[profile.output]] [[profile.output]]
enable = true enable = true
search = ["m=Unknown", "s=", "v=Unknown"] search = ["m=Unknown", "s=", "v=Unknown"]
mode = "2880x1800@120Hz" mode = "2880x1800@120Hz"
position = "288,3240" position = "288,3240"
scale = 1.5 scale = 1.5
transform = "normal" transform = "normal"
adaptive_sync = false adaptive_sync = false
[[profile.output]] [[profile.output]]
enable = true enable = true
search = ["m=Q27P1B", "s=GNXM2HA196769", "v=PNP(AOC)"] search = ["m=Q27P1B", "s=GNXM2HA196769", "v=PNP(AOC)"]
mode = "2560x1440@59.951Hz" mode = "2560x1440@59.951Hz"
position = "116,1800" position = "116,1800"
scale = 1.0 scale = 1.0
transform = "normal" transform = "normal"
adaptive_sync = false adaptive_sync = false
[[profile.output]] [[profile.output]]
enable = true enable = true
search = ["m=PHL 243S7", "s=UHB1923012753", "v=Philips Consumer Electronics Company"] search = ["m=PHL 243S7", "s=UHB1923012753", "v=Philips Consumer Electronics Company"]
mode = "1920x1080@60Hz" mode = "1920x1080@60Hz"
position = "2676,1800" position = "2676,1800"
scale = 1.0 scale = 1.0
transform = "270" transform = "270"
adaptive_sync = false adaptive_sync = false
[[profile]] [[profile]]
name = "home" name = "home"
[[profile.output]] [[profile.output]]
enable = true enable = true
search = ["m=Unknown", "s=Unknown", "v=Unknown"] search = ["m=Unknown", "s=Unknown", "v=Unknown"]
mode = "2880x1800@60.001Hz" mode = "2880x1800@60.001Hz"
position = "185,1440" position = "185,1440"
scale = 1.75 scale = 1.75
transform = "normal" transform = "normal"
adaptive_sync = false adaptive_sync = false
[[profile.output]] [[profile.output]]
enable = true enable = true
search = ["m=PHL 276E8V", "s=0x0000046D", "v=Philips Consumer Electronics Company"] search = ["m=PHL 276E8V", "s=0x0000046D", "v=Philips Consumer Electronics Company"]
mode = "3840x2160@59.996Hz" mode = "3840x2160@59.996Hz"
position = "1500,0" position = "1500,0"
scale = 1.5 scale = 1.5
transform = "normal" transform = "normal"
adaptive_sync = false adaptive_sync = false
''; '';
};
}; };
} }