style: add lang comments for treesitter language injection
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
4a716fc931
commit
907ad13aa8
10 changed files with 124 additions and 66 deletions
|
@ -117,6 +117,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
# Add whitespace after, to allow
|
||||||
|
# sudo to inherit all other aliases
|
||||||
sudo = "sudo ";
|
sudo = "sudo ";
|
||||||
frick = "sudo $(fc -ln -1)";
|
frick = "sudo $(fc -ln -1)";
|
||||||
|
|
||||||
|
@ -124,12 +126,27 @@
|
||||||
tree = "tree -a -I node_modules";
|
tree = "tree -a -I node_modules";
|
||||||
cp = "cp -r";
|
cp = "cp -r";
|
||||||
|
|
||||||
chore = "(cd ~/.nix; git add flake.lock; git commit -m 'chore: update flake.lock'; git push)";
|
chore =
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
|
(
|
||||||
|
cd ~/.nix
|
||||||
|
git add flake.lock
|
||||||
|
git commit -m 'chore: update flake.lock'
|
||||||
|
git push
|
||||||
|
)
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
#profileExtra = ''
|
#profileExtra = ''
|
||||||
#'';
|
#'';
|
||||||
bashrcExtra = ''
|
bashrcExtra =
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
# Check if shell is interactive
|
# Check if shell is interactive
|
||||||
[[ $- == *i* ]] || return 0
|
[[ $- == *i* ]] || return 0
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
bash.sessionVariables = {
|
bash.sessionVariables = {
|
||||||
# FIXME: why is this not set by home-manager?
|
# FIXME: why is this not set by home-manager?
|
||||||
"RIPGREP_CONFIG_PATH" = "${config.xdg.configHome}/ripgrep/ripgreprc";
|
RIPGREP_CONFIG_PATH = "${config.xdg.configHome}/ripgrep/ripgreprc";
|
||||||
};
|
};
|
||||||
ripgrep = {
|
ripgrep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -164,7 +164,11 @@ in {
|
||||||
{
|
{
|
||||||
plugin = todo-comments-nvim;
|
plugin = todo-comments-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = "require('todo-comments').setup()";
|
config =
|
||||||
|
/*
|
||||||
|
lua
|
||||||
|
*/
|
||||||
|
''require('todo-comments').setup()'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = gitsigns-nvim;
|
plugin = gitsigns-nvim;
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
|
|
||||||
plugins = with pkgs.tmuxPlugins; [dracula];
|
plugins = with pkgs.tmuxPlugins; [dracula];
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig =
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
bind-key -n Home send Escape "OH"
|
bind-key -n Home send Escape "OH"
|
||||||
bind-key -n End send Escape "OF"
|
bind-key -n End send Escape "OF"
|
||||||
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
||||||
|
|
|
@ -78,7 +78,11 @@ in {
|
||||||
# TODO: add mic sound
|
# TODO: add mic sound
|
||||||
xdg.configFile."gsr.sh" = {
|
xdg.configFile."gsr.sh" = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text =
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
export WINDOW=DP-5
|
export WINDOW=DP-5
|
||||||
export CONTAINER=mkv
|
export CONTAINER=mkv
|
||||||
export QUALITY=very_high
|
export QUALITY=very_high
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
in {
|
in {
|
||||||
# https://nixos.wiki/wiki/Distributed_build
|
# https://nixos.wiki/wiki/Distributed_build
|
||||||
home-manager.users.root = {
|
home-manager.users.root = {
|
||||||
home.file.".ssh/config".text = ''
|
home.file.".ssh/config".text =
|
||||||
|
/*
|
||||||
|
ssh_config
|
||||||
|
*/
|
||||||
|
''
|
||||||
Host ${servivi}
|
Host ${servivi}
|
||||||
# Prevent using ssh-agent or another keyfile, useful for testing
|
# Prevent using ssh-agent or another keyfile, useful for testing
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
|
|
|
@ -53,7 +53,14 @@ in {
|
||||||
// {
|
// {
|
||||||
paths = map (x: snapPath + x) v.paths;
|
paths = map (x: snapPath + x) v.paths;
|
||||||
|
|
||||||
preHook = v.preHook or "" + ''
|
preHook =
|
||||||
|
v.preHook
|
||||||
|
or ""
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
if [[ ! -d ${pathPrefix} ]]; then
|
if [[ ! -d ${pathPrefix} ]]; then
|
||||||
mkdir -p ${pathPrefix}
|
mkdir -p ${pathPrefix}
|
||||||
fi
|
fi
|
||||||
|
@ -61,9 +68,14 @@ in {
|
||||||
${pkgs.btrfs-progs}/bin/btrfs subvolume snapshot -r / ${snapPath}
|
${pkgs.btrfs-progs}/bin/btrfs subvolume snapshot -r / ${snapPath}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postHook = ''
|
postHook =
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
${pkgs.btrfs-progs}/bin/btrfs subvolume delete ${snapPath}
|
${pkgs.btrfs-progs}/bin/btrfs subvolume delete ${snapPath}
|
||||||
'' + v.postHook or "";
|
''
|
||||||
|
+ v.postHook or "";
|
||||||
})
|
})
|
||||||
tempJobs;
|
tempJobs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -84,7 +84,11 @@
|
||||||
services = {
|
services = {
|
||||||
tlp.enable = true;
|
tlp.enable = true;
|
||||||
|
|
||||||
udev.extraRules = ''
|
udev.extraRules =
|
||||||
|
/*
|
||||||
|
udev
|
||||||
|
*/
|
||||||
|
''
|
||||||
# give permanent path to keyboard XF86* binds
|
# give permanent path to keyboard XF86* binds
|
||||||
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
|
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -24,7 +24,11 @@
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
allowSubstitutes = true;
|
allowSubstitutes = true;
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand =
|
||||||
|
/*
|
||||||
|
bash
|
||||||
|
*/
|
||||||
|
''
|
||||||
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
||||||
mkdir -p "$dst"
|
mkdir -p "$dst"
|
||||||
install -v -m644 "$src" "$dst/${addonId}.xpi"
|
install -v -m644 "$src" "$dst/${addonId}.xpi"
|
||||||
|
|
|
@ -50,14 +50,19 @@
|
||||||
|
|
||||||
xdg.configFile = let
|
xdg.configFile = let
|
||||||
fontSize = lib.strings.floatToString config.vars.fontSize;
|
fontSize = lib.strings.floatToString config.vars.fontSize;
|
||||||
qtconf = ''
|
qtconf =
|
||||||
|
/*
|
||||||
|
ini
|
||||||
|
*/
|
||||||
|
''
|
||||||
[Fonts]
|
[Fonts]
|
||||||
fixed="Sans Serif,${fontSize},-1,5,50,0,0,0,0,0"
|
fixed="Sans Serif,${fontSize},-1,5,50,0,0,0,0,0"
|
||||||
general="Sans Serif,${fontSize},-1,5,50,0,0,0,0,0"
|
general="Sans Serif,${fontSize},-1,5,50,0,0,0,0,0"
|
||||||
|
|
||||||
[Appearance]
|
[Appearance]
|
||||||
icon_theme=Flat-Remix-Violet-Dark
|
icon_theme=Flat-Remix-Violet-Dark
|
||||||
style='';
|
style=
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.kvconfig";
|
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.kvconfig";
|
||||||
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.svg";
|
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.svg";
|
||||||
|
|
Loading…
Reference in a new issue