yep, more dotfiles

kanshi: init config

wiro.world f5c1141c cb8a2e74

verified
Changed files
+58 -1
home-manager
fragments
profiles
+1
home-manager/fragments/default.nix
···
./helix.nix
./imv.nix
./jujutsu.nix
+
./kanshi.nix
./kitty.nix
./launcher.nix
./rust.nix
+55
home-manager/fragments/kanshi.nix
···
+
{ config
+
, lib
+
+
, isDarwin
+
, ...
+
}:
+
+
let
+
cfg = config.local.fragment.kanshi;
+
in
+
{
+
options.local.fragment.kanshi.enable = lib.mkEnableOption ''
+
Kanshi related
+
'';
+
+
config = lib.mkIf cfg.enable {
+
assertions = [
+
{ assertion = !isDarwin; message = "this is a non-darwin fragment"; }
+
];
+
+
services.kanshi = {
+
enable = true;
+
+
settings = [
+
{ output = { criteria = "eDP-1"; scale = 2.0; }; }
+
+
{
+
profile.name = "undocked";
+
profile.outputs = [
+
{ criteria = "eDP-1"; }
+
];
+
}
+
+
{
+
profile.name = "eizo-dock";
+
# position external screen centered above
+
profile.outputs = [
+
{ criteria = "Eizo Nanao Corporation CG222W 29804118"; position = "0,0"; }
+
{ criteria = "eDP-1"; position = "120,1050"; }
+
];
+
}
+
+
{
+
profile.name = "hdmi-default";
+
# position external screen right
+
profile.outputs = [
+
{ criteria = "eDP-1"; position = "0,0"; }
+
{ criteria = "HDMI"; position = "1440,0"; }
+
];
+
}
+
];
+
};
+
};
+
}
+
+2 -1
home-manager/profiles/desktop.nix
···
epita.enable = true;
firefox.enable = true;
imv.enable = true;
+
kanshi.enable = true;
stylix.enable = true;
+
sway.enable = true;
thunderbird.enable = true;
-
sway.enable = true;
waybar.enable = true;
xdg-mime.enable = true;