mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 23:28:34 +01:00
This commit adds NixOS module option generation for komorebi and komorebi-bar configurations, along with a nix and JSONSchema validation test harness that runs as part of `nix flake check`. `schemars-nixgen` (same as `schemars-docgen`, not sure if I'm gonna release this...) generates strongly-typed Nix option definitions from the generated JSONSchema files, allowing users to write type-checked Nix configurations that map directly to the config files. This will eventually be plugged into a nix-darwin module which I have yet to start writing.
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
# Nix equivalent of docs/komorebi.example.json
|
|
# This tests that users can write the exact same config in Nix
|
|
{ ... }:
|
|
{
|
|
komorebi = {
|
|
app_specific_configuration_path = "$HOME/.config/komorebi/applications.json";
|
|
cross_monitor_move_behaviour = "Insert";
|
|
default_workspace_padding = 15;
|
|
default_container_padding = 15;
|
|
border = true;
|
|
border_width = 6;
|
|
border_offset = 5;
|
|
floating_window_aspect_ratio = "Widescreen";
|
|
floating_layer_behaviour = "Float";
|
|
resize_delta = 100;
|
|
ignore_rules = [ ];
|
|
floating_applications = [ ];
|
|
manage_rules = [ ];
|
|
monitors = [
|
|
{
|
|
workspaces = [
|
|
{
|
|
name = "I";
|
|
layout = "BSP";
|
|
initial_workspace_rules = [ ];
|
|
}
|
|
{
|
|
name = "II";
|
|
layout = "VerticalStack";
|
|
}
|
|
{
|
|
name = "III";
|
|
layout = "HorizontalStack";
|
|
}
|
|
{
|
|
name = "IV";
|
|
layout = "UltrawideVerticalStack";
|
|
}
|
|
{
|
|
name = "V";
|
|
layout = "Rows";
|
|
}
|
|
{
|
|
name = "VI";
|
|
layout = "Grid";
|
|
}
|
|
{
|
|
name = "VII";
|
|
layout = "RightMainVerticalStack";
|
|
}
|
|
{
|
|
name = "VIII";
|
|
layout = "Scrolling";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
}
|