Remove 'with' from most modules

This commit is contained in:
Filippo Berto 2023-08-15 18:33:34 +02:00
parent 40032f7fd9
commit 7459ae0e96
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
27 changed files with 222 additions and 230 deletions

View file

@ -1,9 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
let let
strPalette = with pkgs.rice; strPalette = pkgs.lib.nix-rice.palette.toRgbHex rec {
pkgs.lib.nix-rice.palette.toRgbHex rec { inherit (pkgs.rice.colorPalette) normal bright primary;
inherit (colorPalette) normal bright primary; dim = pkgs.rice.colorPalette.dark;
dim = colorPalette.dark;
cursor = { cursor = {
cursor = normal.white; cursor = normal.white;
text = normal.black; text = normal.black;

View file

@ -1,5 +1,4 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
with pkgs.lib.nix-rice;
let let
xsetroot = "${pkgs.xorg.xsetroot}/bin/xsetroot"; xsetroot = "${pkgs.xorg.xsetroot}/bin/xsetroot";
monitorPages = [ "" "" "" "" "" "" "" "" "" "" ]; monitorPages = [ "" "" "" "" "" "" "" "" "" "" ];
@ -12,7 +11,7 @@ let
systemctl --user restart polybar # Restart polybar systemctl --user restart polybar # Restart polybar
systemctl --user restart kdeconnect-indicator # Restart polybar systemctl --user restart kdeconnect-indicator # Restart polybar
''; '';
strPalette = palette.toRGBHex pkgs.rice.colorPalette; strPalette = pkgs.lib.nix-rice.palette.toRGBHex pkgs.rice.colorPalette;
in in
{ {
xsession.windowManager.bspwm = { xsession.windowManager.bspwm = {

View file

@ -1,9 +1,10 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = home.packages =
lib.optionals config.programs.helix.enable builtins.attrValues lib.optionals config.programs.helix.enable
{ (builtins.attrValues {
inherit (pkgs) clang-tools cmake-language-server; inherit (pkgs) clang-tools cmake-language-server;
} ++ lib.optionals config.programs.kakoune.enable builtins.attrValues { }) ++
lib.optionals config.programs.kakoune.enable (builtins.attrValues {
inherit (pkgs) clang-tools cmake-language-server; inherit (pkgs) clang-tools cmake-language-server;
}; });
} }

View file

@ -1,11 +1,10 @@
{ config, pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
home.packages = home.packages = lib.optionals config.programs.helix.enable
lib.optionals config.programs.helix.enable builtins.attrValues (builtins.attrValues {
{
inherit (pkgs) yaml-language-server taplo-cli; inherit (pkgs) yaml-language-server taplo-cli;
inherit (pkgs.nodePackages) vscode-langservers-extracted; inherit (pkgs.nodePackages) vscode-langservers-extracted;
} ++ lib.optionals config.programs.kakoune.enable builtins.attrValues { }) ++ lib.optionals config.programs.kakoune.enable (builtins.attrValues {
inherit (pkgs) yaml-language-server; inherit (pkgs) yaml-language-server;
inherit (pkgs.nodePackages) vscode-langservers-extracted; inherit (pkgs.nodePackages) vscode-langservers-extracted;
}; });
} }

View file

@ -1,9 +1,6 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = home.packages = (builtins.attrValues { inherit (pkgs) docker-compose docker-machine; })
builtins.attrValues { inherit (pkgs) docker-compose docker-machine; } ++ lib.optionals config.programs.helix.enable (builtins.attrValues { inherit (pkgs.nodePackages) dockerfile-language-server-nodejs; });
++ lib.optionals config.programs.helix.enable builtins.attrValues {
inherit (pkgs.nodePackages) dockerfile-language-server-nodejs;
};
home.shellAliases = { home.shellAliases = {
"dkcd" = "docker-compose down"; "dkcd" = "docker-compose down";
"dkc" = "docker-compose"; "dkc" = "docker-compose";

View file

@ -4,6 +4,7 @@
goPath = ".go"; goPath = ".go";
}; };
home.packages = lib.optionals config.programs.helix.enable [ pkgs.gopls ] home.packages =
++ (lib.optionals config.programs.kakoune.enable [ pkgs.gopls ]); (lib.optionals config.programs.helix.enable [ pkgs.gopls ]) ++
(lib.optionals config.programs.kakoune.enable [ pkgs.gopls ]);
} }

View file

@ -1,11 +1,10 @@
{ pkgs, lib, config, ... }: { { pkgs, lib, config, ... }: {
home.packages = home.packages = lib.optionals config.programs.helix.enable
lib.optionals config.programs.helix.enable builtins.attrValues (builtins.attrValues {
{
inherit (pkgs.nodePackages) typescript-language-server; inherit (pkgs.nodePackages) typescript-language-server;
} ++ lib.optionals config.programs.kakoune.enable builtins.attrValues { }) ++ lib.optionals config.programs.kakoune.enable (builtins.attrValues {
inherit (pkgs.nodePackages) typescript-language-server; inherit (pkgs.nodePackages) typescript-language-server;
}; });
programs.neovim.withNodeJs = true; programs.neovim.withNodeJs = true;
} }

View file

@ -1,8 +1,7 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
home.packages = builtins.attrValues home.packages = (builtins.attrValues {
{
inherit (pkgs) nixpkgs-fmt nixfmt nix-prefetch-scripts nix-review nix-tree; inherit (pkgs) nixpkgs-fmt nixfmt nix-prefetch-scripts nix-review nix-tree;
} ++ lib.optionals config.programs.helix.enable [ pkgs.nil ] }) ++ lib.optionals config.programs.helix.enable [ pkgs.nil ]
++ lib.optionals config.programs.kakoune.enable [ pkgs.rnix-lsp ]; ++ lib.optionals config.programs.kakoune.enable [ pkgs.rnix-lsp ];
programs.neovim.plugins = [ pkgs.vimPlugins.vim-nix ]; programs.neovim.plugins = [ pkgs.vimPlugins.vim-nix ];
} }

View file

@ -5,16 +5,18 @@ let
pyPkgs = py.pkgs; pyPkgs = py.pkgs;
in in
{ {
home.packages = [ py pyPkgs.black ] home.packages = [ py pyPkgs.black ] ++
++ lib.optionals config.programs.helix.enable ([ lib.optionals config.programs.helix.enable ((builtins.attrValues {
pyPkgs.python-lsp-server inherit (pyPkgs)
pyPkgs.pyls-flake8 python-lsp-server
pyPkgs.pyls-isort pyls-flake8
] ++ pyPkgs.python-lsp-server.optional-dependencies.all) pyls-isort;
++ lib.optionals config.programs.kakoune.enable ([ }) ++ pyPkgs.python-lsp-server.optional-dependencies.all) ++
pyPkgs.python-lsp-server lib.optionals config.programs.kakoune.enable ((builtins.attrValues {
pyPkgs.pyls-flake8 inherit (pyPkgs)
pyPkgs.pyls-isort python-lsp-server
] ++ pyPkgs.python-lsp-server.optional-dependencies.all); pyls-flake8
pyls-isort;
}) ++ pyPkgs.python-lsp-server.optional-dependencies.all);
programs.neovim.withPython3 = true; programs.neovim.withPython3 = true;
} }

View file

@ -3,8 +3,7 @@
[build] [build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache" rustc-wrapper = "${pkgs.sccache}/bin/sccache"
''; '';
home.packages = builtins.attrValues home.packages = (builtins.attrValues {
{
inherit (pkgs) inherit (pkgs)
bacon cargo cargo-audit cargo-criterion cargo-deadlinks cargo-expand bacon cargo cargo-audit cargo-criterion cargo-deadlinks cargo-expand
cargo-flamegraph cargo-fuzz cargo-hack cargo-hakari cargo-inspect cargo-flamegraph cargo-fuzz cargo-hack cargo-hakari cargo-inspect
@ -16,9 +15,7 @@
# cargo-deny # cargo-deny
# cargo-deps # cargo-deps
# cargo-feature # cargo-feature
})
} ++ lib.optionals config.programs.helix.enable ++ lib.optionals config.programs.helix.enable (builtins.attrValues { inherit (pkgs) lldb rust-analyzer; })
(builtins.attrValues { inherit (pkgs) lldb rust-analyzer; }) ++ lib.optionals config.programs.kakoune.enable (builtins.attrValues { inherit (pkgs) rust-analyzer; });
++ lib.optionals config.programs.kakoune.enable
(builtins.attrValues { inherit (pkgs) rust-analyzer; });
} }

View file

@ -1,7 +1,9 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs.lib.nix-rice; let
let strPalette = palette.toRGBHex pkgs.rice.colorPalette; inherit (pkgs.lib) nix-rice;
in { strPalette = nix-rice.palette.toRGBHex pkgs.rice.colorPalette;
in
{
home.packages = builtins.attrValues { home.packages = builtins.attrValues {
inherit (pkgs) dunst; inherit (pkgs) dunst;
inherit (pkgs.rice.font.normal) package; inherit (pkgs.rice.font.normal) package;
@ -26,7 +28,7 @@ in {
notification_limit = 10; notification_limit = 10;
offset = "7x28"; offset = "7x28";
separator_color = strPalette.normal.blue; separator_color = strPalette.normal.blue;
transparency = 100 - float.round (pkgs.rice.opacity * 100); transparency = 100 - nix-rice.float.round (pkgs.rice.opacity * 100);
width = "(0, 320)"; width = "(0, 320)";
}; };
urgency_low = { urgency_low = {

View file

@ -1,9 +1,11 @@
{ pkgs, ... }: { pkgs, ... }:
let let
package = with pkgs.dwarf-fortress-packages; dfp = pkgs.dwarf-fortress-packages;
dwarf-fortress-full.override { package = dfp.dwarf-fortress-full.override {
theme = themes.ironhand; theme = dfp.themes.ironhand;
enableFPS = true; enableFPS = true;
}; };
in in
{ home.packages = [ package ]; } {
home.packages = [ package ];
}

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
let let
gnomeExtensions = with pkgs.gnomeExtensions; [ gnomeExtensions = builtins.attrValues {
inherit (pkgs.gnomeExtensions)
appindicator appindicator
aylurs-widgets aylurs-widgets
babar babar
@ -27,6 +28,9 @@ let
unite unite
user-themes user-themes
# vitals # vitals
]; ;
};
in in
{ home.packages = [ pkgs.gnome.gnome-tweaks ] ++ gnomeExtensions; } {
home.packages = [ pkgs.gnome.gnome-tweaks ] ++ gnomeExtensions;
}

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
gtk = with pkgs.rice; { gtk = {
enable = true; enable = true;
font = font.normal; font = pkgs.rice.font.normal;
iconTheme = { iconTheme = {
package = pkgs.qogir-icon-theme; package = pkgs.qogir-icon-theme;
name = "Qogir-dark"; name = "Qogir-dark";

View file

@ -1,6 +1,5 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs.lib.nix-rice; let strPalette = pkgs.lib.nix-rice.palette.toRgbShortHex pkgs.rice.colorPalette;
let strPalette = palette.toRgbShortHex pkgs.rice.colorPalette;
in { in {
programs.mangohud = { programs.mangohud = {
enable = true; enable = true;

View file

@ -1,6 +1,4 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs.cinnamon; [ home.packages = builtins.attrValues { inherit (pkgs.cinnamon) nemo; };
nemo
];
} }

View file

@ -2,7 +2,8 @@
programs.obs-studio = { programs.obs-studio = {
enable = true; enable = true;
package = pkgs.obs-studio; package = pkgs.obs-studio;
plugins = with pkgs.obs-studio-plugins; [ plugins = builtins.attrValues {
inherit (pkgs.obs-studio-plugins)
# obs-backgroundremoval # obs-backgroundremoval
# obs-multi-rtmp # obs-multi-rtmp
obs-nvfbc obs-nvfbc
@ -10,11 +11,11 @@
obs-vkcapture obs-vkcapture
obs-backgroundremoval obs-backgroundremoval
input-overlay input-overlay
# obs-linuxbrowser # obs-linuxbrowser
# obs-gstreamer # obs-gstreamer
# obs-move-transition # obs-move-transition
# obs-multi-rtmp # obs-multi-rtmp
]; ;
};
}; };
} }

View file

@ -1,14 +1,14 @@
{ pkgs, ... }: { { pkgs, ... }: {
programs.password-store = { programs.password-store = {
package = pkgs.pass.withExtensions (ext: package = pkgs.pass.withExtensions (ext: (builtins.attrValues {
with ext; [ inherit (ext)
# pass-audit # pass-audit
pass-checkup pass-checkup
pass-import pass-import
pass-otp pass-otp
pass-tomb pass-tomb
pass-update pass-update;
]); }));
enable = true; enable = true;
}; };
} }

View file

@ -1,7 +1,8 @@
{ nixosConfig, config, pkgs, lib, ... }: { nixosConfig, config, pkgs, lib, ... }:
with lib;
let let
inherit (pkgs.rice) colorPalette opacity; inherit (pkgs.rice) colorPalette opacity;
inherit (pkgs.lib) nix-rice;
alpha = 255 * opacity;
grep = "${pkgs.gnugrep}/bin/grep"; grep = "${pkgs.gnugrep}/bin/grep";
cut = "${pkgs.coreutils}/bin/cut"; cut = "${pkgs.coreutils}/bin/cut";
pavucontrol = "${pkgs.pavucontrol}/bin/pavucontrol"; pavucontrol = "${pkgs.pavucontrol}/bin/pavucontrol";
@ -48,30 +49,27 @@ let
PATH=$PATH:"${lib.makeBinPath [ pkgs.rofi pkgs.rofi-power-menu pkgs.zsh ]}" PATH=$PATH:"${lib.makeBinPath [ pkgs.rofi pkgs.rofi-power-menu pkgs.zsh ]}"
zsh -c 'rofi -show menu -modi "menu:rofi-power-menu --choices=shutdown/reboot/hibernate/logout"' zsh -c 'rofi -show menu -modi "menu:rofi-power-menu --choices=shutdown/reboot/hibernate/logout"'
''; '';
colors = with pkgs.lib.nix-rice; colors = nix-rice.palette.toARGBHex rec {
let alpha = 255 * opacity;
in palette.toARGBHex rec {
normal = { normal = {
foreground = color.darken 10 colorPalette.foreground; foreground = nix-rice.color.darken 10 colorPalette.foreground;
background = color.setAlphaRgba alpha colorPalette.background; background = nix-rice.color.setAlphaRgba alpha colorPalette.background;
underline = colorPalette.normal.blue; underline = colorPalette.normal.blue;
}; };
active = { active = {
inherit (colorPalette) foreground; inherit (colorPalette) foreground;
background = color.setAlphaRgba alpha colorPalette.background; background = nix-rice.color.setAlphaRgba alpha colorPalette.background;
underline = colorPalette.normal.yellow; underline = colorPalette.normal.yellow;
}; };
selected = { selected = {
inherit (colorPalette) foreground; inherit (colorPalette) foreground;
background = color.setAlphaRgba alpha colorPalette.background; background = nix-rice.color.setAlphaRgba alpha colorPalette.background;
underline = colorPalette.bright.red; underline = colorPalette.bright.red;
}; };
inherit (colorPalette.normal) green red yellow; inherit (colorPalette.normal) green red yellow;
inherit (color) transparent; inherit (nix-rice.color) transparent;
orange = colorPalette.bright.red; orange = colorPalette.bright.red;
alert = orange; alert = orange;
}; };
@ -141,7 +139,7 @@ in
settings = { settings = {
"settings" = { screenchange-reload = false; }; "settings" = { screenchange-reload = false; };
"bar/primary" = recursiveUpdate commonBar { "bar/primary" = lib.recursiveUpdate commonBar {
modules-left = "bspwm"; modules-left = "bspwm";
# modules-center = # modules-center =
modules-right = modules-right =
@ -152,7 +150,7 @@ in
}; };
}; };
"bar/secondary" = recursiveUpdate commonBar { "bar/secondary" = lib.recursiveUpdate commonBar {
modules-left = "bspwm"; modules-left = "bspwm";
# modules-center = # modules-center =
modules-right = modules-right =
@ -172,13 +170,13 @@ in
}; };
format = { format = {
charging = recursiveUpdate colors.selected { charging = lib.recursiveUpdate colors.selected {
text = "<animation-charging> <label-charging>"; text = "<animation-charging> <label-charging>";
}; };
discharging = recursiveUpdate colors.active { discharging = lib.recursiveUpdate colors.active {
text = "<animation-discharging> <label-discharging>"; text = "<animation-discharging> <label-discharging>";
}; };
full = recursiveUpdate colors.normal { text = " <label-full>"; }; full = lib.recursiveUpdate colors.normal { text = " <label-full>"; };
}; };
label.text = "%percentage%%"; label.text = "%percentage%%";
@ -202,16 +200,16 @@ in
}; };
in in
{ {
focused = recursiveUpdate common colors.selected; focused = lib.recursiveUpdate common colors.selected;
occupied = recursiveUpdate common colors.active; occupied = lib.recursiveUpdate common colors.active;
urgent = recursiveUpdate (recursiveUpdate common colors.active) { background = colors.alert; }; urgent = lib.recursiveUpdate (lib.recursiveUpdate common colors.active) { background = colors.alert; };
empty = recursiveUpdate common colors.normal; empty = lib.recursiveUpdate common colors.normal;
}; };
}; };
"module/cpu" = { "module/cpu" = {
type = "internal/cpu"; type = "internal/cpu";
format = recursiveUpdate colors.normal { text = " <label>"; }; format = lib.recursiveUpdate colors.normal { text = " <label>"; };
interval = 2; interval = 2;
label = "%percentage-sum%%"; label = "%percentage-sum%%";
ramp-load = ramp; ramp-load = ramp;
@ -228,7 +226,7 @@ in
"module/memory" = { "module/memory" = {
type = "internal/memory"; type = "internal/memory";
format = recursiveUpdate colors.normal { text = " <label>"; }; format = lib.recursiveUpdate colors.normal { text = " <label>"; };
interval = 2; interval = 2;
label = "%percentage_used%%"; label = "%percentage_used%%";
ramp-used = ramp; ramp-used = ramp;
@ -257,7 +255,7 @@ in
format = { format = {
padding = 1; padding = 1;
muted = colors.active; muted = colors.active;
volume = recursiveUpdate colors.normal { volume = lib.recursiveUpdate colors.normal {
text = "<ramp-volume> <label-volume>"; text = "<ramp-volume> <label-volume>";
}; };
}; };
@ -268,7 +266,7 @@ in
}; };
"module/temperature" = { "module/temperature" = {
format = recursiveUpdate colors.normal { format = lib.recursiveUpdate colors.normal {
text = "<ramp> <label>"; text = "<ramp> <label>";
warn = { warn = {
text = "<ramp> <label-warn>"; text = "<ramp> <label-warn>";
@ -286,13 +284,13 @@ in
}; };
"module/powermenu" = { "module/powermenu" = {
type = "custom/script"; type = "custom/script";
format = recursiveUpdate colors.normal { padding = 0; }; format = lib.recursiveUpdate colors.normal { padding = 0; };
exec = "echo "; exec = "echo ";
click.left = "${powermenu}"; click.left = "${powermenu}";
}; };
"module/notifications" = { "module/notifications" = {
type = "custom/script"; type = "custom/script";
format = recursiveUpdate colors.normal { padding = 0; }; format = lib.recursiveUpdate colors.normal { padding = 0; };
exec = "${notificationStatus}"; exec = "${notificationStatus}";
click.left = "${notificationToggle}"; click.left = "${notificationToggle}";
click.right = "${notificationHistory}"; click.right = "${notificationHistory}";
@ -301,7 +299,7 @@ in
}; };
"module/keyboard-switch" = { "module/keyboard-switch" = {
type = "custom/script"; type = "custom/script";
format = recursiveUpdate colors.normal { padding = 0; }; format = lib.recursiveUpdate colors.normal { padding = 0; };
exec = "${keyboardStatus}"; exec = "${keyboardStatus}";
click.left = "${keyboardToggle}"; click.left = "${keyboardToggle}";
interval = 1; interval = 1;

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs.lib.nix-rice;
let let
strPalette = palette.toRgbHex { strPalette = pkgs.lib.nix-rice.palette.toRgbHex {
inherit (pkgs.rice.colorPalette) normal bright dark; inherit (pkgs.rice.colorPalette) normal bright dark;
inherit (pkgs.rice.colorPalette.primary) background foreground; inherit (pkgs.rice.colorPalette.primary) background foreground;
}; };
@ -30,7 +29,7 @@ in
{ {
home.packages = [ pkgs.terminator ]; home.packages = [ pkgs.terminator ];
xdg.configFile."terminator/config".text = with strPalette; '' xdg.configFile."terminator/config".text = ''
[global_config] [global_config]
scroll_tabbar = True scroll_tabbar = True
enabled_plugins = ActivityWatch, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler enabled_plugins = ActivityWatch, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
@ -41,34 +40,34 @@ in
[profiles] [profiles]
[[default]] [[default]]
visible_bell = True visible_bell = True
background_color = "${background}" background_color = "${strPalette.background}"
background_darkness = ${opacity} background_darkness = ${opacity}
background_type = transparent background_type = transparent
cursor_color = "${foreground}" cursor_color = "${strPalette.foreground}"
font = ${font.name} weight=450 ${toString font.size} font = ${font.name} weight=450 ${toString font.size}
foreground_color = "${foreground}" foreground_color = "${strPalette.foreground}"
show_titlebar = False show_titlebar = False
scrollbar_position = hidden scrollbar_position = hidden
scrollback_lines = 10000 scrollback_lines = 10000
palette = "${colorString normal bright}" palette = "${colorString strPalette.normal strPalette.bright}"
use_system_font = False use_system_font = False
[[Light presentation]] [[Light presentation]]
visible_bell = True visible_bell = True
background_color = "${foreground}" background_color = "${strPalette.foreground}"
cursor_color = "${background}" cursor_color = "${strPalette.background}"
font = ${font.name} weight=450 20 font = ${font.name} weight=450 20
foreground_color = "${background}" foreground_color = "${strPalette.background}"
show_titlebar = False show_titlebar = False
palette = "${colorString dark normal}" palette = "${colorString strPalette.dark strPalette.normal}"
use_system_font = False use_system_font = False
[[Dark presentation]] [[Dark presentation]]
visible_bell = True visible_bell = True
background_color = "${background}" background_color = "${strPalette.background}"
cursor_color = "${foreground}" cursor_color = "${strPalette.foreground}"
font = ${font.name} weight=450 20 font = ${font.name} weight=450 20
foreground_color = "${foreground}" foreground_color = "${strPalette.foreground}"
show_titlebar = False show_titlebar = False
palette = "${colorString normal bright}" palette = "${colorString strPalette.normal strPalette.bright}"
use_system_font = False use_system_font = False
[layouts] [layouts]
[[default]] [[default]]

View file

@ -1,10 +1,11 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs.xfce; [ home.packages = builtins.attrValues {
inherit (pkgs.xfce)
thunar thunar
thunar-archive-plugin thunar-archive-plugin
thunar-media-tags-plugin thunar-media-tags-plugin
thunar-volman thunar-volman
tumbler tumbler
xfconf xfconf;
]; };
} }

View file

@ -4,7 +4,7 @@
clock24 = true; clock24 = true;
escapeTime = 25; escapeTime = 25;
terminal = "screen-256color"; terminal = "screen-256color";
plugins = with pkgs.tmuxPlugins; [ nord prefix-highlight ]; plugins = builtins.attrValues { inherit (pkgs.tmuxPlugins) nord prefix-highlight; };
extraConfig = '' extraConfig = ''
set -g mouse on set -g mouse on
''; '';

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs.lib.nix-rice;
let let
strPalette = palette.toRGBHex pkgs.rice.colorPalette; strPalette = pkgs.lib.nix-rice.palette.toRGBHex pkgs.rice.colorPalette;
font = pkgs.rice.font.normal; font = pkgs.rice.font.normal;
in in
{ {
@ -18,7 +17,7 @@ in
animation.bounce.enable = false; animation.bounce.enable = false;
color = strPalette.primary.background; color = strPalette.primary.background;
height = 32; height = 32;
opacity = float.round (pkgs.rice.opacity * 100); opacity = pkgs.lib.nix-rice.float.round (pkgs.rice.opacity * 100);
offset = { offset = {
x = -20; x = -20;
y = 50; y = 50;

View file

@ -1,30 +1,29 @@
{ pkgs, ... }: { { pkgs, ... }: {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
plugins = with pkgs.vimPlugins; [ plugins = [
{ {
plugin = airline; plugin = pkgs.vimPlugins.airline;
# config = "let g:airline#extensions#tabline#left_alt_sep = '>'"; # config = "let g:airline#extensions#tabline#left_alt_sep = '>'";
} }
# { # {
# plugin = catppuccin-nvim; # plugin = pkgs.vimPlugins.catppuccin-nvim;
# config = "colorscheme catppuccin-mocha"; # config = "colorscheme catppuccin-mocha";
# } # }
# { # {
# plugin = neovim-ayu; # plugin = pkgs.vimPlugins.neovim-ayu;
# config = "colorscheme ayu-mirage"; # config = "colorscheme ayu-mirage";
# } # }
{ {
plugin = nightfox-nvim; plugin = pkgs.vimPlugins.nightfox-nvim;
config = "colorscheme nightfox"; config = "colorscheme nightfox";
} }
{ {
plugin = vim-airline-themes; plugin = pkgs.vimPlugins.vim-airline-themes;
config = "let g:airline_theme='nightfox'"; config = "let g:airline_theme='nightfox'";
} }
fugitive pkgs.vimPlugins.fugitive
surround pkgs.vimPlugins.surround
]; ];
# settings = { ignorecase = true; }; # settings = { ignorecase = true; };
coc.enable = true; coc.enable = true;

View file

@ -1,7 +1,4 @@
{ pkgs, lib, ... }: { pkgs, ... }:
with lib;
let let
xbacklightCmd = "${pkgs.xorg.xbacklight}/bin/xbacklight"; xbacklightCmd = "${pkgs.xorg.xbacklight}/bin/xbacklight";
xsetCmd = "${pkgs.xorg.xset}/bin/xset"; xsetCmd = "${pkgs.xorg.xset}/bin/xset";

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
let let
strPalette = with pkgs.rice; strPalette = pkgs.lib.nix-rice.palette.toRgbHex { inherit (pkgs.rice.colorPalette) normal bright primary; };
pkgs.lib.nix-rice.palette.toRgbHex { inherit (colorPalette) normal bright primary; };
in in
{ {
home.file.".Xresources" = { home.file.".Xresources" = {

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
with pkgs.lib.nix-rice; let
let strPalette = palette.toRgbHex pkgs.rice.colorPalette; strPalette = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.colorPalette;
in { in
{
programs.zathura = { programs.zathura = {
enable = true; enable = true;
mappings = { "<C-i>" = "recolor"; }; mappings = { "<C-i>" = "recolor"; };