feat(flake): Added subflake

So as to not specify fetchFromGitHub commit hashes
Added mullvad packages
This commit is contained in:
uttarayan21
2024-03-25 20:35:16 +05:30
parent 8497db7318
commit 7ebb723857
12 changed files with 486 additions and 40 deletions

View File

@@ -1,4 +1,8 @@
{lib, ...}: {
{
lib,
pkgs,
...
}: {
home.sessionVariables = {
"ZELLIJ_AUTO_ATTACH" = "true";
# "ZELLIJ_AUTO_EXIT" = "true";
@@ -59,7 +63,7 @@
default_shell = "fish";
pane_frames = false;
theme = "catppuccin-mocha";
default_layout = "compact";
# default_layout = "compact";
keybinds = mkKeybinds {
normal = {
clear-defaults = true;
@@ -93,4 +97,49 @@
};
enableFishIntegration = true;
};
xdg.configFile."zellij/layouts/default.kdl" = {
text =
/*
kdl
*/
''
layout {
pane split_direction="vertical" {
pane
}
pane size=1 borderless=true {
plugin location="file:${pkgs.zellijPlugins.zjstatus}/bin/zjstatus.wasm" {
hide_frame_for_single_pane "true"
format_left "{mode}#[fg=#89B4FA,bg=#181825,bold] {session}#[bg=#181825] {tabs}"
format_right "{command_kubectx}#[fg=#424554,bg=#181825]::{command_kubens}{datetime}"
format_space "#[bg=#181825]"
mode_normal "#[bg=#89B4FA] "
mode_tmux "#[bg=#ffc387] "
mode_default_to_mode "tmux"
tab_normal "#[fg=#6C7086,bg=#181825] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}"
tab_active "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}"
tab_fullscreen_indicator " "
tab_sync_indicator " "
tab_floating_indicator "󰉈 "
command_kubectx_command "kubectx -c"
command_kubectx_format "#[fg=#6C7086,bg=#181825,italic] {stdout}"
command_kubectx_interval "2"
command_kubens_command "kubens -c"
command_kubens_format "#[fg=#6C7086,bg=#181825]{stdout} "
command_kubens_interval "2"
datetime "#[fg=#9399B2,bg=#181825] {format} "
datetime_format "%A, %d %b %Y %H:%M"
datetime_timezone "Asia/Kolkata"
}
}
}
'';
};
}