* cd into the home-manager directory * `watchexec` to apply configuration automatically Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
home.file.".config/zellij/config.kdl".text = ''
|
|
default_layout "main"
|
|
session_serialization false
|
|
keybinds {
|
|
unbind "Ctrl p"
|
|
unbind "Ctrl o"
|
|
normal {
|
|
bind "Ctrl w" { SwitchToMode "pane"; }
|
|
bind "Ctrl '" { SwitchToMode "session"; }
|
|
}
|
|
ui {
|
|
pane_frames {
|
|
rounded_corners true
|
|
}
|
|
}
|
|
'';
|
|
|
|
home.file.".config/zellij/layouts/main.kdl".text = ''
|
|
layout {
|
|
default_tab_template {
|
|
pane size=1 borderless=true{
|
|
plugin location="zellij:tab-bar"
|
|
}
|
|
pane split_direction="vertical"{
|
|
children
|
|
}
|
|
pane size=1 borderless=true{
|
|
plugin location="zellij:status-bar"
|
|
}
|
|
}
|
|
tab name="main" focus=true{
|
|
pane split_direction="vertical" {
|
|
pane focus=true
|
|
pane {
|
|
pane command="htop"
|
|
pane command="watch" {
|
|
args "df -x tmpfs -x devtmpfs -x efivarfs -h"
|
|
}
|
|
pane command="watch" {
|
|
args "sensors k10temp-pci-00c3"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tab name="HM" cwd="~/nix/home-manager" {
|
|
pane split_direction="vertical" {
|
|
pane
|
|
pane command="watchexec" {
|
|
args "-c" "--" "home-manager" "switch" "--flake" "path:/home/gkaklas/nix/home-manager/"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
'';
|
|
}
|