mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-05 09:16:43 +02:00
home: Format with nixfmt-rfc-style
This commit is contained in:
parent
4f8625c1bf
commit
14f65a9633
15
home/eww.nix
15
home/eww.nix
@ -2,16 +2,24 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.home) homeDirectory;
|
inherit (config.home) homeDirectory;
|
||||||
inherit (config.xdg.userDirs) download documents music pictures videos;
|
|
||||||
inherit (config.lib.stylix.colors.withHashtag) base00 base05;
|
inherit (config.lib.stylix.colors.withHashtag) base00 base05;
|
||||||
inherit (pkgs) eww;
|
inherit (pkgs) eww;
|
||||||
|
|
||||||
|
inherit (config.xdg.userDirs)
|
||||||
|
download
|
||||||
|
documents
|
||||||
|
music
|
||||||
|
pictures
|
||||||
|
videos
|
||||||
|
;
|
||||||
|
|
||||||
fluent-icons = pkgs.callPackage ../packages/fluent-icons.nix { };
|
fluent-icons = pkgs.callPackage ../packages/fluent-icons.nix { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ eww ];
|
home.packages = [ eww ];
|
||||||
|
|
||||||
xdg.configFile."eww/eww.yuck".text = /* yuck */ ''
|
xdg.configFile."eww/eww.yuck".text = # yuck
|
||||||
|
''
|
||||||
(defwidget icons []
|
(defwidget icons []
|
||||||
(box :orientation "h" :spacing 32
|
(box :orientation "h" :spacing 32
|
||||||
(icon :img "default-user-home" :exec "${homeDirectory}")
|
(icon :img "default-user-home" :exec "${homeDirectory}")
|
||||||
@ -42,7 +50,8 @@ in
|
|||||||
time)
|
time)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
xdg.configFile."eww/eww.scss".text = /* scss */ ''
|
xdg.configFile."eww/eww.scss".text = # scss
|
||||||
|
''
|
||||||
img {
|
img {
|
||||||
all: unset;
|
all: unset;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,8 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.dataFile = {
|
xdg.dataFile = {
|
||||||
"fcitx5/themes/${themeName}/theme.conf".text = /* ini */ ''
|
"fcitx5/themes/${themeName}/theme.conf".text = # ini
|
||||||
|
''
|
||||||
[Metadata]
|
[Metadata]
|
||||||
Name=${themeName}
|
Name=${themeName}
|
||||||
Version=0.1
|
Version=0.1
|
||||||
@ -93,7 +94,8 @@ in
|
|||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"mozc/ibus_config.textproto" = {
|
"mozc/ibus_config.textproto" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = /* textproto */ ''
|
text = # textproto
|
||||||
|
''
|
||||||
engines {
|
engines {
|
||||||
name : "mozc-jp"
|
name : "mozc-jp"
|
||||||
longname : "Mozc"
|
longname : "Mozc"
|
||||||
@ -108,7 +110,8 @@ in
|
|||||||
|
|
||||||
"fcitx5/config" = {
|
"fcitx5/config" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = /* ini */ ''
|
text = # ini
|
||||||
|
''
|
||||||
[Hotkey]
|
[Hotkey]
|
||||||
EnumerateWithTriggerKeys=True
|
EnumerateWithTriggerKeys=True
|
||||||
AltTriggerKeys=
|
AltTriggerKeys=
|
||||||
@ -157,7 +160,8 @@ in
|
|||||||
|
|
||||||
"fcitx5/profile" = {
|
"fcitx5/profile" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = /* ini */ ''
|
text = # ini
|
||||||
|
''
|
||||||
[Groups/0]
|
[Groups/0]
|
||||||
Name="Group 1"
|
Name="Group 1"
|
||||||
Default Layout=us
|
Default Layout=us
|
||||||
@ -178,7 +182,8 @@ in
|
|||||||
|
|
||||||
"fcitx5/conf/classicui.conf" = {
|
"fcitx5/conf/classicui.conf" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = /* ini */ ''
|
text = # ini
|
||||||
|
''
|
||||||
Vertical Candidate List=False
|
Vertical Candidate List=False
|
||||||
PerScreenDPI=True
|
PerScreenDPI=True
|
||||||
WheelForPaging=True
|
WheelForPaging=True
|
||||||
@ -196,7 +201,8 @@ in
|
|||||||
|
|
||||||
"fcitx5/conf/clipboard.conf" = {
|
"fcitx5/conf/clipboard.conf" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = /* ini */ ''
|
text = # ini
|
||||||
|
''
|
||||||
TriggerKey=
|
TriggerKey=
|
||||||
PastePrimaryKey=
|
PastePrimaryKey=
|
||||||
Number of entries=5
|
Number of entries=5
|
||||||
@ -205,7 +211,8 @@ in
|
|||||||
|
|
||||||
"fcitx5/conf/mozc.conf" = {
|
"fcitx5/conf/mozc.conf" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = /* ini */ ''
|
text = # ini
|
||||||
|
''
|
||||||
InitialMode=Hiragana
|
InitialMode=Hiragana
|
||||||
Vertical=True
|
Vertical=True
|
||||||
ExpandMode="On Focus"
|
ExpandMode="On Focus"
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
shellInit = /* fish */ ''
|
shellInit = # fish
|
||||||
|
''
|
||||||
set -U fish_greeting ""
|
set -U fish_greeting ""
|
||||||
|
|
||||||
set -x -U LESS_TERMCAP_md (printf "\e[01;31m")
|
set -x -U LESS_TERMCAP_md (printf "\e[01;31m")
|
||||||
@ -129,7 +130,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
functions = {
|
functions = {
|
||||||
wav2flac = /* fish */ ''
|
wav2flac = # fish
|
||||||
|
''
|
||||||
set ORIGINAL_SIZE (du -hs | cut -f1)
|
set ORIGINAL_SIZE (du -hs | cut -f1)
|
||||||
|
|
||||||
fd -e wav -x ffmpeg -i "{}" -loglevel quiet -stats "{.}.flac"
|
fd -e wav -x ffmpeg -i "{}" -loglevel quiet -stats "{.}.flac"
|
||||||
@ -140,7 +142,8 @@
|
|||||||
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
|
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
opus = /* fish */ ''
|
opus = # fish
|
||||||
|
''
|
||||||
set ORIGINAL_SIZE (du -hs | cut -f1)
|
set ORIGINAL_SIZE (du -hs | cut -f1)
|
||||||
|
|
||||||
fd -e wav -e flac -x ffmpeg -i "{}" -c:a libopus -b:a 128K -loglevel quiet -stats "{.}.opus"
|
fd -e wav -e flac -x ffmpeg -i "{}" -c:a libopus -b:a 128K -loglevel quiet -stats "{.}.opus"
|
||||||
@ -151,7 +154,8 @@
|
|||||||
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
|
echo "Done. Reduced file size from $ORIGINAL_SIZE to $NEW_SIZE"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
epub2pdf = /* fish */ ''
|
epub2pdf = # fish
|
||||||
|
''
|
||||||
if string match -qe -- ".epub" "$argv";
|
if string match -qe -- ".epub" "$argv";
|
||||||
set BASE (string split -f 1 ".epub" "$argv")
|
set BASE (string split -f 1 ".epub" "$argv")
|
||||||
${pkgs.calibre}/bin/ebook-convert "$argv" "$BASE.pdf"; and trash "$argv"
|
${pkgs.calibre}/bin/ebook-convert "$argv" "$BASE.pdf"; and trash "$argv"
|
||||||
@ -160,7 +164,8 @@
|
|||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
tmp = /* fish */ ''
|
tmp = # fish
|
||||||
|
''
|
||||||
set MULLVAD_CACHE "/tmp/mullvad.json"
|
set MULLVAD_CACHE "/tmp/mullvad.json"
|
||||||
|
|
||||||
if not test -e $MULLVAD_CACHE
|
if not test -e $MULLVAD_CACHE
|
||||||
@ -186,7 +191,8 @@
|
|||||||
"$argv"
|
"$argv"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ex = /* fish */ ''
|
ex = # fish
|
||||||
|
''
|
||||||
if string match -qe -- ".part1." "$argv";
|
if string match -qe -- ".part1." "$argv";
|
||||||
set BASE (string split -f 1 ".part1." "$argv")
|
set BASE (string split -f 1 ".part1." "$argv")
|
||||||
|
|
||||||
|
@ -4,7 +4,10 @@ let
|
|||||||
inherit (pkgs) tig mgitstatus;
|
inherit (pkgs) tig mgitstatus;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ tig mgitstatus ];
|
home.packages = [
|
||||||
|
tig
|
||||||
|
mgitstatus
|
||||||
|
];
|
||||||
|
|
||||||
xdg.configFile."tig/config".text = ''
|
xdg.configFile."tig/config".text = ''
|
||||||
color cursor black green bold
|
color cursor black green bold
|
||||||
@ -22,9 +25,7 @@ in
|
|||||||
verify = "log --show-signature";
|
verify = "log --show-signature";
|
||||||
};
|
};
|
||||||
|
|
||||||
attributes = [
|
attributes = [ "*.lockb binary diff=lockb" ];
|
||||||
"*.lockb binary diff=lockb"
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
include.path = "~/.gituser";
|
include.path = "~/.gituser";
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
{ pkgs, lib, vars, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
vars,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) polkit_gnome callPackage;
|
inherit (pkgs) polkit_gnome callPackage;
|
||||||
@ -258,7 +263,8 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = /* hyprlang */ ''
|
extraConfig = # hyprlang
|
||||||
|
''
|
||||||
bind = CTRL, Alt_L, submap, passthrough
|
bind = CTRL, Alt_L, submap, passthrough
|
||||||
submap = passthrough
|
submap = passthrough
|
||||||
bind = CTRL, Alt_L, submap, reset
|
bind = CTRL, Alt_L, submap, reset
|
||||||
@ -269,7 +275,8 @@ in
|
|||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
${gapsScript} = {
|
${gapsScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
hyprctl keyword general:gaps_out $(math 10 - $(hyprctl getoption general:gaps_out -j | jq -r ".custom" | choose 1))
|
hyprctl keyword general:gaps_out $(math 10 - $(hyprctl getoption general:gaps_out -j | jq -r ".custom" | choose 1))
|
||||||
@ -281,7 +288,8 @@ in
|
|||||||
|
|
||||||
${setBackgroundScript} = {
|
${setBackgroundScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
if [ (hyprctl getoption animations:enabled -j | jq -r ".int") = "1" ]
|
if [ (hyprctl getoption animations:enabled -j | jq -r ".int") = "1" ]
|
||||||
@ -307,7 +315,8 @@ in
|
|||||||
|
|
||||||
${randomBackgroundScript} = {
|
${randomBackgroundScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
for monitor in (hyprctl monitors -j | jq -r '.[].name')
|
for monitor in (hyprctl monitors -j | jq -r '.[].name')
|
||||||
@ -318,7 +327,8 @@ in
|
|||||||
|
|
||||||
${swapBackgroundScript} = {
|
${swapBackgroundScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set M "$(swww query | cut -d ':' -f 5)"
|
set M "$(swww query | cut -d ':' -f 5)"
|
||||||
@ -332,7 +342,8 @@ in
|
|||||||
|
|
||||||
${monitorScript} = {
|
${monitorScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
if test -n "$(hyprctl monitors -j | jq -r '.[] | select(.name | contains("eDP-1"))')"
|
if test -n "$(hyprctl monitors -j | jq -r '.[] | select(.name | contains("eDP-1"))')"
|
||||||
|
@ -1,11 +1,23 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) singleton;
|
inherit (lib) singleton;
|
||||||
inherit (config.lib.stylix.colors.withHashtag) base00 base01 base04 base05 base0D;
|
|
||||||
inherit (pkgs) ironbar inotify-tools;
|
inherit (pkgs) ironbar inotify-tools;
|
||||||
inherit (builtins) toJSON;
|
inherit (builtins) toJSON;
|
||||||
|
|
||||||
|
inherit (config.lib.stylix.colors.withHashtag)
|
||||||
|
base00
|
||||||
|
base01
|
||||||
|
base04
|
||||||
|
base05
|
||||||
|
base0D
|
||||||
|
;
|
||||||
|
|
||||||
mullvadScript = "ironbar/mullvad.fish";
|
mullvadScript = "ironbar/mullvad.fish";
|
||||||
volumeScript = "ironbar/volume.fish";
|
volumeScript = "ironbar/volume.fish";
|
||||||
volumeGet = "ironbar/volume-get.fish";
|
volumeGet = "ironbar/volume-get.fish";
|
||||||
@ -63,13 +75,12 @@ in
|
|||||||
type = "clock";
|
type = "clock";
|
||||||
format = "%x(%a)%R";
|
format = "%x(%a)%R";
|
||||||
}
|
}
|
||||||
{
|
{ type = "notifications"; }
|
||||||
type = "notifications";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"ironbar/style.css".text = /* css */ ''
|
"ironbar/style.css".text = # css
|
||||||
|
''
|
||||||
* {
|
* {
|
||||||
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
|
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -178,7 +189,8 @@ in
|
|||||||
|
|
||||||
${mullvadScript} = {
|
${mullvadScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
@ -246,7 +258,8 @@ in
|
|||||||
|
|
||||||
${volumeScript} = {
|
${volumeScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function get_volume
|
function get_volume
|
||||||
@ -262,7 +275,8 @@ in
|
|||||||
|
|
||||||
${volumeGet} = {
|
${volumeGet} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = # fish
|
||||||
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set VOLUME (wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1)
|
set VOLUME (wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1)
|
||||||
|
@ -7,9 +7,7 @@ in
|
|||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
package = librewolf.override {
|
package = librewolf.override { cfg.speechSynthesisSupport = false; };
|
||||||
cfg.speechSynthesisSupport = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
"middlemouse.paste" = false;
|
"middlemouse.paste" = false;
|
||||||
|
@ -54,7 +54,8 @@
|
|||||||
universal-ctags
|
universal-ctags
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = /* vim */ ''
|
extraConfig = # vim
|
||||||
|
''
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
set undofile
|
set undofile
|
||||||
set spell
|
set spell
|
||||||
@ -113,7 +114,8 @@
|
|||||||
{
|
{
|
||||||
plugin = nvim-tree-lua;
|
plugin = nvim-tree-lua;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({"QuitPre"}, {
|
vim.api.nvim_create_autocmd({"QuitPre"}, {
|
||||||
@ -139,21 +141,24 @@
|
|||||||
{
|
{
|
||||||
plugin = indent-blankline-nvim;
|
plugin = indent-blankline-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("ibl").setup()
|
require("ibl").setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = pkgs.callPackage ../packages/chameleon-nvim.nix { };
|
plugin = pkgs.callPackage ../packages/chameleon-nvim.nix { };
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("chameleon").setup()
|
require("chameleon").setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = gitsigns-nvim;
|
plugin = gitsigns-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require('gitsigns').setup()
|
require('gitsigns').setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
@ -164,14 +169,16 @@
|
|||||||
{
|
{
|
||||||
plugin = nvim-scrollbar;
|
plugin = nvim-scrollbar;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("scrollbar").setup()
|
require("scrollbar").setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = nvim-lspconfig;
|
plugin = nvim-lspconfig;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
|
|
||||||
@ -242,7 +249,8 @@
|
|||||||
{
|
{
|
||||||
plugin = nvim-cmp;
|
plugin = nvim-cmp;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
|
|
||||||
@ -318,7 +326,8 @@
|
|||||||
{
|
{
|
||||||
plugin = luasnip;
|
plugin = luasnip;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
@ -326,7 +335,8 @@
|
|||||||
{
|
{
|
||||||
plugin = lualine-nvim;
|
plugin = lualine-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
local theme = require("lualine.themes.base16")
|
local theme = require("lualine.themes.base16")
|
||||||
theme.normal.b.bg = nil
|
theme.normal.b.bg = nil
|
||||||
theme.normal.c.bg = nil
|
theme.normal.c.bg = nil
|
||||||
@ -353,7 +363,8 @@
|
|||||||
{
|
{
|
||||||
plugin = comment-nvim;
|
plugin = comment-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require('Comment').setup {
|
require('Comment').setup {
|
||||||
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()
|
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()
|
||||||
}
|
}
|
||||||
@ -362,20 +373,23 @@
|
|||||||
{
|
{
|
||||||
plugin = nvim-autopairs;
|
plugin = nvim-autopairs;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("nvim-autopairs").setup()
|
require("nvim-autopairs").setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = auto-save-nvim;
|
plugin = auto-save-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require("auto-save").setup()
|
require("auto-save").setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = vimtex;
|
plugin = vimtex;
|
||||||
config = /* vim */ ''
|
config = # vim
|
||||||
|
''
|
||||||
let g:vimtex_mappings_enabled = 0
|
let g:vimtex_mappings_enabled = 0
|
||||||
let g:vimtex_imaps_enabled = 0
|
let g:vimtex_imaps_enabled = 0
|
||||||
let g:vimtex_view_method = 'zathura'
|
let g:vimtex_view_method = 'zathura'
|
||||||
@ -389,7 +403,8 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = vim-markdown;
|
plugin = vim-markdown;
|
||||||
config = /* vim */ ''
|
config = # vim
|
||||||
|
''
|
||||||
let g:vim_markdown_folding_disabled = 1
|
let g:vim_markdown_folding_disabled = 1
|
||||||
let g:vim_markdown_conceal = 0
|
let g:vim_markdown_conceal = 0
|
||||||
let g:vim_markdown_frontmatter = 1
|
let g:vim_markdown_frontmatter = 1
|
||||||
@ -400,28 +415,32 @@
|
|||||||
{
|
{
|
||||||
plugin = nvim-ts-autotag;
|
plugin = nvim-ts-autotag;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require('nvim-ts-autotag').setup()
|
require('nvim-ts-autotag').setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = nvim-surround;
|
plugin = nvim-surround;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require('nvim-surround').setup()
|
require('nvim-surround').setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = tailwindcss-colors-nvim;
|
plugin = tailwindcss-colors-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require('tailwindcss-colors').setup()
|
require('tailwindcss-colors').setup()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = nvim-ts-context-commentstring;
|
plugin = nvim-ts-context-commentstring;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require('ts_context_commentstring').setup {
|
require('ts_context_commentstring').setup {
|
||||||
enable_autocmd = false,
|
enable_autocmd = false,
|
||||||
}
|
}
|
||||||
@ -430,7 +449,8 @@
|
|||||||
{
|
{
|
||||||
plugin = nvim-treesitter.withAllGrammars;
|
plugin = nvim-treesitter.withAllGrammars;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = /* lua */ ''
|
config = # lua
|
||||||
|
''
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
@ -453,7 +473,8 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = vista-vim;
|
plugin = vista-vim;
|
||||||
config = /* vim */ ''
|
config = # vim
|
||||||
|
''
|
||||||
let g:vista_default_executive = 'nvim_lsp'
|
let g:vista_default_executive = 'nvim_lsp'
|
||||||
let g:vista_executive_for = {
|
let g:vista_executive_for = {
|
||||||
\ 'rust': 'ctags',
|
\ 'rust': 'ctags',
|
||||||
|
@ -9,10 +9,7 @@ in
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
url = {
|
url = {
|
||||||
start_pages = [
|
start_pages = [ "about:blank" ];
|
||||||
"about:blank"
|
|
||||||
];
|
|
||||||
|
|
||||||
default_page = "about:blank";
|
default_page = "about:blank";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -42,9 +39,30 @@ in
|
|||||||
|
|
||||||
fileselect = {
|
fileselect = {
|
||||||
handler = "external";
|
handler = "external";
|
||||||
folder.command = [ "kitty" "-e" "yazi" "--cwd-file" "{}" ];
|
|
||||||
multiple_files.command = [ "kitty" "-e" "yazi" "--chooser-file" "{}" ];
|
folder.command = [
|
||||||
single_file.command = [ "kitty" "-e" "yazi" "--chooser-file" "{}" ];
|
"kitty"
|
||||||
|
"-e"
|
||||||
|
"yazi"
|
||||||
|
"--cwd-file"
|
||||||
|
"{}"
|
||||||
|
];
|
||||||
|
|
||||||
|
multiple_files.command = [
|
||||||
|
"kitty"
|
||||||
|
"-e"
|
||||||
|
"yazi"
|
||||||
|
"--chooser-file"
|
||||||
|
"{}"
|
||||||
|
];
|
||||||
|
|
||||||
|
single_file.command = [
|
||||||
|
"kitty"
|
||||||
|
"-e"
|
||||||
|
"yazi"
|
||||||
|
"--chooser-file"
|
||||||
|
"{}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
downloads = {
|
downloads = {
|
||||||
@ -55,11 +73,21 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
args = [ "disable-backing-store-limit" "enable-accelerated-video-decode" "disable-gpu-driver-bug-workarounds" ];
|
args = [
|
||||||
|
"disable-backing-store-limit"
|
||||||
|
"enable-accelerated-video-decode"
|
||||||
|
"disable-gpu-driver-bug-workarounds"
|
||||||
|
];
|
||||||
|
|
||||||
chromium.low_end_device_mode = "never";
|
chromium.low_end_device_mode = "never";
|
||||||
};
|
};
|
||||||
|
|
||||||
editor.command = [ "kitty" "-e" "nvim" "{}" ];
|
editor.command = [
|
||||||
|
"kitty"
|
||||||
|
"-e"
|
||||||
|
"nvim"
|
||||||
|
"{}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
keyBindings = {
|
keyBindings = {
|
||||||
@ -104,7 +132,8 @@ in
|
|||||||
DEFAULT = "https://search.goo.ne.jp/web.jsp?MT={}";
|
DEFAULT = "https://search.goo.ne.jp/web.jsp?MT={}";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = /* python */ ''
|
extraConfig = # python
|
||||||
|
''
|
||||||
from qutebrowser.mainwindow import tabwidget
|
from qutebrowser.mainwindow import tabwidget
|
||||||
|
|
||||||
tabwidget.TabWidget.MUTE_STRING = ""
|
tabwidget.TabWidget.MUTE_STRING = ""
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) rofi-wayland;
|
inherit (pkgs) rofi-wayland;
|
||||||
@ -64,7 +69,10 @@ in
|
|||||||
border-radius = mkLiteral "2px";
|
border-radius = mkLiteral "2px";
|
||||||
border-color = mkLiteral "${base05}40";
|
border-color = mkLiteral "${base05}40";
|
||||||
|
|
||||||
children = map mkLiteral [ "icon-search" "entry" ];
|
children = map mkLiteral [
|
||||||
|
"icon-search"
|
||||||
|
"entry"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
prompt = {
|
prompt = {
|
||||||
|
@ -1,3 +1 @@
|
|||||||
{
|
{ services.swaync.enable = true; }
|
||||||
services.swaync.enable = true;
|
|
||||||
}
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
{
|
{ services.swayosd.enable = true; }
|
||||||
services.swayosd.enable = true;
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
xdg.configFile."xfce4/helpers.rc".text = /* ini */ ''
|
xdg.configFile."xfce4/helpers.rc".text = # ini
|
||||||
|
''
|
||||||
TerminalEmulator=kitty
|
TerminalEmulator=kitty
|
||||||
TerminalEmulatorDismissed=true
|
TerminalEmulatorDismissed=true
|
||||||
'';
|
'';
|
||||||
|
@ -1,3 +1 @@
|
|||||||
{
|
{ services.udiskie.enable = true; }
|
||||||
services.udiskie.enable = true;
|
|
||||||
}
|
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
let
|
let
|
||||||
inherit (config.home) homeDirectory;
|
inherit (config.home) homeDirectory;
|
||||||
|
|
||||||
no = { name = ""; noDisplay = true; };
|
no = {
|
||||||
|
name = "";
|
||||||
|
noDisplay = true;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg = {
|
xdg = {
|
||||||
|
@ -4,9 +4,14 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
manager = {
|
manager = {
|
||||||
ratio = [ 1 2 4 ];
|
|
||||||
sort_dir_first = true;
|
sort_dir_first = true;
|
||||||
linemode = "mtime";
|
linemode = "mtime";
|
||||||
|
|
||||||
|
ratio = [
|
||||||
|
1
|
||||||
|
2
|
||||||
|
4
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
preview = {
|
preview = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user