feat(nixos:appearance): move appearance options to nixos
This commit is contained in:
parent
cedeb52103
commit
ceb66c03cf
51 changed files with 393 additions and 377 deletions
|
|
@ -1,13 +1,14 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) palette;
|
||||
inherit (config.ooknet) console;
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.ooknet.multiplexer.tmux;
|
||||
console = config.ooknet.console;
|
||||
in {
|
||||
config = mkIf (cfg.enable || console.multiplexer == "tmux") {
|
||||
programs.tmux = {
|
||||
|
|
|
|||
|
|
@ -5,23 +5,23 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) slug palette;
|
||||
inherit (config.ooknet) console;
|
||||
inherit (osConfig.ooknet.host) admin;
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.ooknet.multiplexer.zellij;
|
||||
in {
|
||||
config = mkIf (cfg.enable || console.multiplexer == "zellij") {
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "${config.colorscheme.slug}";
|
||||
theme = "${slug}";
|
||||
default_shell = "${admin.shell}";
|
||||
default_layout = "default";
|
||||
pane_frames = false;
|
||||
scrollback_editor = "${console.editor}";
|
||||
themes = {
|
||||
"${config.colorscheme.slug}" = {
|
||||
"${slug}" = {
|
||||
fg = "#${palette.base05}";
|
||||
bg = "#${palette.base00}";
|
||||
black = "#${palette.base00}";
|
||||
|
|
@ -41,11 +41,11 @@ in {
|
|||
# Layouts
|
||||
xdg.configFile = {
|
||||
# Default layout
|
||||
"zellij/layouts/default.kdl" = import ./layouts/defaultLayout.nix {inherit pkgs config;};
|
||||
"zellij/layouts/default.kdl" = import ./layouts/defaultLayout.nix {inherit pkgs config osConfig;};
|
||||
# Layout for bash scripts
|
||||
"zellij/layouts/script.kdl" = import ./layouts/scriptLayout.nix {inherit pkgs config;};
|
||||
"zellij/layouts/script.kdl" = import ./layouts/scriptLayout.nix {inherit pkgs config osConfig;};
|
||||
# Layout for configuring my flake
|
||||
"zellij/layouts/flake.kdl" = import ./layouts/flakeLayout.nix {inherit pkgs config;};
|
||||
"zellij/layouts/flake.kdl" = import ./layouts/flakeLayout.nix {inherit pkgs config osConfig;};
|
||||
# Additional keybinds
|
||||
"zellij/config.kdl".text =
|
||||
# kdl
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
{
|
||||
pkgs,
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) palette;
|
||||
in {
|
||||
text =
|
||||
/*
|
||||
kdl
|
||||
*/
|
||||
# kdl
|
||||
''
|
||||
layout {
|
||||
default_tab_template {
|
||||
|
|
@ -51,7 +50,7 @@ in {
|
|||
|
||||
datetime "#[fg=#${palette.base05},bold] {format} "
|
||||
datetime_format "%I:%M %p"
|
||||
datetime_timezone "${config.home.sessionVariables.TZ}"
|
||||
datetime_timezone "${osConfig.time.timeZone}"
|
||||
}
|
||||
}
|
||||
children
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) palette;
|
||||
in {
|
||||
text =
|
||||
/*
|
||||
|
|
@ -51,7 +51,7 @@ in {
|
|||
|
||||
datetime "#[fg=#${palette.base05},bold] {format} "
|
||||
datetime_format "%I:%M %p"
|
||||
datetime_timezone "${config.home.sessionVariables.TZ}"
|
||||
datetime_timezone "${osConfig.time.timeZone}"
|
||||
}
|
||||
}
|
||||
children
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (config.colorscheme) palette;
|
||||
inherit (osConfig.ooknet.appearance.colorscheme) palette;
|
||||
in {
|
||||
text =
|
||||
/*
|
||||
|
|
@ -51,7 +51,7 @@ in {
|
|||
|
||||
datetime "#[fg=#${palette.base05},bold] {format} "
|
||||
datetime_format "%I:%M %p"
|
||||
datetime_timezone "${config.home.sessionVariables.TZ}"
|
||||
datetime_timezone "${osConfig.time.timeZone}"
|
||||
}
|
||||
}
|
||||
children
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue