mirror of
https://git.sr.ht/~azikx/wyswort
synced 2024-10-30 07:26:20 +00:00
update
This commit is contained in:
parent
38abbd202c
commit
77096b6c08
|
@ -3,8 +3,7 @@
|
|||
let
|
||||
nxsys = nixpkgs.lib.nixosSystem;
|
||||
hmsys = home-manager.lib.homeManagerConfiguration;
|
||||
in
|
||||
{
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
wysvort = nxsys {
|
||||
specialArgs = { inherit inputs; };
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./window-managers
|
||||
./programs
|
||||
./themes
|
||||
];
|
||||
imports = [ ./window-managers ./programs ./themes ];
|
||||
|
||||
home = {
|
||||
username = "megamozg";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
programs.cava = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
icons = true;
|
||||
extraOptions = [
|
||||
"--group-directories-first"
|
||||
];
|
||||
extraOptions = [ "--group-directories-first" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{ ... }: {
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -60,9 +60,7 @@
|
|||
format = "{} / {}";
|
||||
}
|
||||
{ type = "break"; }
|
||||
{
|
||||
type = "colors";
|
||||
}
|
||||
{ type = "colors"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
# defaultOptions = [
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "azikx";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
imports = [ ./theme.nix ./languages.nix ];
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
|
@ -34,15 +33,21 @@
|
|||
statusline = {
|
||||
left = [ "mode" "spinner" "file-name" "read-only-indicator" ];
|
||||
center = [ ];
|
||||
right = ["file-type" "separator" "spacer" "position-percentage" "position" "separator" "total-line-numbers"];
|
||||
right = [
|
||||
"file-type"
|
||||
"separator"
|
||||
"spacer"
|
||||
"position-percentage"
|
||||
"position"
|
||||
"separator"
|
||||
"total-line-numbers"
|
||||
];
|
||||
separator = "|";
|
||||
mode.normal = "NORMAL";
|
||||
mode.insert = "INSERT";
|
||||
mode.select = "SELECT";
|
||||
};
|
||||
file-picker = {
|
||||
hidden = false;
|
||||
};
|
||||
file-picker = { hidden = false; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
programs.helix.languages = {
|
||||
language = [
|
||||
{
|
||||
language = [{
|
||||
name = "nix";
|
||||
language-servers = [ "nixd" "nil" ];
|
||||
indent = { tab-width = 2; unit = " "; };
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
nixd = {
|
||||
command = "nixd";
|
||||
};
|
||||
indent = {
|
||||
tab-width = 2;
|
||||
unit = " ";
|
||||
};
|
||||
auto-format = true;
|
||||
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
|
||||
}];
|
||||
language-server = { nixd = { command = "nixd"; }; };
|
||||
};
|
||||
|
||||
# LSP PACKGAES
|
||||
|
@ -20,6 +18,7 @@
|
|||
# NIX LSP
|
||||
nil
|
||||
nixd
|
||||
nixfmt-rfc-style
|
||||
|
||||
# MARKDOWN LSP
|
||||
marksman
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
programs.helix.themes = with config.lib.stylix.colors; lib.mkForce {
|
||||
{ config, lib, ... }: {
|
||||
programs.helix.themes = with config.lib.stylix.colors;
|
||||
lib.mkForce {
|
||||
themo = let
|
||||
BASE00 = "#${base00}";
|
||||
BASE01 = "#${base01}";
|
||||
|
@ -20,7 +20,10 @@
|
|||
BASE0F = "#${base0F}";
|
||||
in {
|
||||
"attributes" = BASE09;
|
||||
"comment" = { fg = BASE03; modifiers = [ "italic" ]; };
|
||||
"comment" = {
|
||||
fg = BASE03;
|
||||
modifiers = [ "italic" ];
|
||||
};
|
||||
"constant" = BASE09;
|
||||
"constant.character.escape" = BASE0C;
|
||||
"constant.numeric" = BASE09;
|
||||
|
@ -45,11 +48,20 @@
|
|||
"variable.other.member" = BASE0B;
|
||||
"warning" = BASE09;
|
||||
|
||||
"markup.bold" = { fg = BASE0A; modifiers = [ "bold" ]; };
|
||||
"markup.bold" = {
|
||||
fg = BASE0A;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.heading" = BASE0D;
|
||||
"markup.italic" = { fg = BASE0E; modifiers = [ "italic" ]; };
|
||||
"markup.italic" = {
|
||||
fg = BASE0E;
|
||||
modifiers = [ "italic" ];
|
||||
};
|
||||
"markup.link.text" = BASE08;
|
||||
"markup.link.url" = { fg = BASE09; modifiers = [ "underlined" "italic" ]; };
|
||||
"markup.link.url" = {
|
||||
fg = BASE09;
|
||||
modifiers = [ "underlined" "italic" ];
|
||||
};
|
||||
"markup.list" = BASE08;
|
||||
"markup.quote" = BASE0C;
|
||||
"markup.raw" = BASE0B;
|
||||
|
@ -61,35 +73,98 @@
|
|||
"diagnostic.error" = { underline = { style = "curl"; }; };
|
||||
|
||||
"ui.background" = { bg = BASE00; };
|
||||
"ui.bufferline.active" = { fg = BASE00; bg = BASE0E; modifiers = [ "bold" ]; };
|
||||
"ui.bufferline" = { fg = BASE04; bg = BASE00; };
|
||||
"ui.cursor" = { fg = BASE0A; modifiers = [ "reversed" ]; };
|
||||
"ui.cursor.insert" = { fg = BASE0A; modifiers = [ "reversed" ]; };
|
||||
"ui.cursorline.primary" = { fg = BASE05; bg = BASE01; };
|
||||
"ui.cursor.match" = { fg = BASE0A; modifiers = [ "reversed" ]; };
|
||||
"ui.cursor.select" = { fg = BASE0A; modifiers = [ "reversed" ]; };
|
||||
"ui.bufferline.active" = {
|
||||
fg = BASE00;
|
||||
bg = BASE0E;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.bufferline" = {
|
||||
fg = BASE04;
|
||||
bg = BASE00;
|
||||
};
|
||||
"ui.cursor" = {
|
||||
fg = BASE0A;
|
||||
modifiers = [ "reversed" ];
|
||||
};
|
||||
"ui.cursor.insert" = {
|
||||
fg = BASE0A;
|
||||
modifiers = [ "reversed" ];
|
||||
};
|
||||
"ui.cursorline.primary" = {
|
||||
fg = BASE05;
|
||||
bg = BASE01;
|
||||
};
|
||||
"ui.cursor.match" = {
|
||||
fg = BASE0A;
|
||||
modifiers = [ "reversed" ];
|
||||
};
|
||||
"ui.cursor.select" = {
|
||||
fg = BASE0A;
|
||||
modifiers = [ "reversed" ];
|
||||
};
|
||||
"ui.gutter" = { bg = BASE00; };
|
||||
"ui.help" = { fg = BASE06; bg = BASE01; };
|
||||
"ui.linenr" = { fg = BASE03; bg = BASE00; };
|
||||
"ui.linenr.selected" = { fg = BASE04; bg = BASE01; modifiers = [ "bold" ]; };
|
||||
"ui.menu" = { fg = BASE05; bg = BASE01; };
|
||||
"ui.menu.scroll" = { fg = BASE03; bg = BASE01; };
|
||||
"ui.menu.selected" = { fg = BASE01; bg = BASE04; };
|
||||
"ui.help" = {
|
||||
fg = BASE06;
|
||||
bg = BASE01;
|
||||
};
|
||||
"ui.linenr" = {
|
||||
fg = BASE03;
|
||||
bg = BASE00;
|
||||
};
|
||||
"ui.linenr.selected" = {
|
||||
fg = BASE04;
|
||||
bg = BASE01;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.menu" = {
|
||||
fg = BASE05;
|
||||
bg = BASE01;
|
||||
};
|
||||
"ui.menu.scroll" = {
|
||||
fg = BASE03;
|
||||
bg = BASE01;
|
||||
};
|
||||
"ui.menu.selected" = {
|
||||
fg = BASE01;
|
||||
bg = BASE04;
|
||||
};
|
||||
"ui.popup" = { bg = BASE01; };
|
||||
"ui.selection" = { bg = BASE02; };
|
||||
"ui.selection.primary" = { bg = BASE02; };
|
||||
"ui.statusline" = { fg = BASE04; bg = BASE01; };
|
||||
"ui.statusline.inactive" = { bg = BASE01; fg = BASE03; modifiers = [ "bold" ]; };
|
||||
"ui.statusline.insert" = { fg = BASE00; bg = BASE0B; modifiers = [ "bold" ]; };
|
||||
"ui.statusline.normal" = { fg = BASE00; bg = BASE0D; modifiers = [ "bold" ]; };
|
||||
"ui.statusline.select" = { fg = BASE00; bg = BASE0F; modifiers = [ "bold" ]; };
|
||||
"ui.statusline" = {
|
||||
fg = BASE04;
|
||||
bg = BASE01;
|
||||
};
|
||||
"ui.statusline.inactive" = {
|
||||
bg = BASE01;
|
||||
fg = BASE03;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.statusline.insert" = {
|
||||
fg = BASE00;
|
||||
bg = BASE0B;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.statusline.normal" = {
|
||||
fg = BASE00;
|
||||
bg = BASE0D;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.statusline.select" = {
|
||||
fg = BASE00;
|
||||
bg = BASE0F;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.text" = BASE05;
|
||||
"ui.text.focus" = BASE05;
|
||||
"ui.virtual.indent-guide" = { fg = BASE03; };
|
||||
"ui.virtual.wrap" = { fg = BASE03; };
|
||||
"ui.virtual.inlay-hint" = { fg = BASE03; };
|
||||
"ui.virtual.ruler" = { bg = BASE01; };
|
||||
"ui.virtual.jump-label" = { fg = BASE0A; modifiers = [ "bold" ]; };
|
||||
"ui.virtual.jump-label" = {
|
||||
fg = BASE0A;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.window" = { bg = BASE01; };
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,150 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.joshuto.keymap = {
|
||||
default_view = {
|
||||
keymap = [
|
||||
{ keys = ["escape"]; commands = ["escape"] };
|
||||
{ keys = ["t"; "a"]; commands = ["new_tab"] };
|
||||
{ keys = ["t"; "c"]; commands = ["new_tab --cursor"] };
|
||||
{ keys = ["t"; "A"]; commands = ["new_tab --current"] };
|
||||
{ keys = ["t"; "q"]; commands = ["close_tab"] };
|
||||
{ keys = ["q"]; commands = ["close_tab"] };
|
||||
{ keys = ["ctrl+c"]; commands = ["quit"] };
|
||||
{ keys = ["Q"]; commands = ["quit --output-current-directory"] };
|
||||
|
||||
{ keys = ["R"]; commands = ["reload_dirlist"] };
|
||||
{ keys = ["z"; "r"]; commands = ["reload_dirlist"] };
|
||||
{ keys = ["z"; "z"]; commands = ["zi"] };
|
||||
{ keys = ["z"; "h"]; commands = ["toggle_hidden"] };
|
||||
{ keys = ["z"; "f"]; commands = ["flat 2"] };
|
||||
{ keys = ["z"; "F"]; commands = ["flat 0"] };
|
||||
{ keys = ["backspace"]; commands = ["toggle_hidden"] };
|
||||
{ keys = ["t"; "s"]; commands = ["tab_switch 1"] };
|
||||
{ keys = ["t"; "S"]; commands = ["tab_switch -1"] };
|
||||
{ keys = ["\t"]; commands = ["tab_switch 1"] };
|
||||
{ keys = ["backtab"]; commands = ["tab_switch -1"] };
|
||||
|
||||
{ keys = ["alt+1"]; commands = ["tab_switch_index 1"] };
|
||||
{ keys = ["alt+2"]; commands = ["tab_switch_index 2"] };
|
||||
{ keys = ["alt+3"]; commands = ["tab_switch_index 3"] };
|
||||
{ keys = ["alt+4"]; commands = ["tab_switch_index 4"] };
|
||||
{ keys = ["alt+5"]; commands = ["tab_switch_index 5"] };
|
||||
|
||||
{ keys = ["1"]; commands = ["numbered_command 1"] };
|
||||
{ keys = ["2"]; commands = ["numbered_command 2"] };
|
||||
{ keys = ["3"]; commands = ["numbered_command 3"] };
|
||||
{ keys = ["4"]; commands = ["numbered_command 4"] };
|
||||
{ keys = ["5"]; commands = ["numbered_command 5"] };
|
||||
{ keys = ["6"]; commands = ["numbered_command 6"] };
|
||||
{ keys = ["7"]; commands = ["numbered_command 7"] };
|
||||
{ keys = ["8"]; commands = ["numbered_command 8"] };
|
||||
{ keys = ["9"]; commands = ["numbered_command 9"] };
|
||||
|
||||
# arrow keys
|
||||
{ keys = ["arrow_up"]; commands = ["cursor_move_up"] };
|
||||
{ keys = ["arrow_down"]; commands = ["cursor_move_down"] };
|
||||
{ keys = ["arrow_left"]; commands = ["cd .."] };
|
||||
{ keys = ["arrow_right"]; commands = ["open"] };
|
||||
{ keys = ["\n"]; commands = ["open"] };
|
||||
{ keys = ["home"]; commands = ["cursor_move_home"] };
|
||||
{ keys = ["end"]; commands = ["cursor_move_end"] };
|
||||
{ keys = ["page_up"]; commands = ["cursor_move_page_up"] };
|
||||
{ keys = ["page_down"]; commands = ["cursor_move_page_down"] };
|
||||
{ keys = ["ctrl+u"]; commands = ["cursor_move_page_up 0.5"] };
|
||||
{ keys = ["ctrl+d"]; commands = ["cursor_move_page_down 0.5"] };
|
||||
{ keys = ["ctrl+b"]; commands = ["cursor_move_page_up"] };
|
||||
{ keys = ["ctrl+f"]; commands = ["cursor_move_page_down"] };
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = ["j"]; commands = ["cursor_move_down"] };
|
||||
{ keys = ["k"]; commands = ["cursor_move_up"] };
|
||||
{ keys = ["h"]; commands = ["z"] };
|
||||
{ keys = ["l"]; commands = ["open"] };
|
||||
{ keys = ["g"; "g"]; commands = ["cursor_move_home"] };
|
||||
{ keys = ["G"]; commands = ["cursor_move_end"] };
|
||||
{ keys = ["e"]; commands = ["open_with"] };
|
||||
|
||||
{ keys = ["H"]; commands = ["cursor_move_page_home"] };
|
||||
{ keys = ["L"]; commands = ["cursor_move_page_middle"] };
|
||||
{ keys = ["M"]; commands = ["cursor_move_page_end"] };
|
||||
|
||||
{ keys = ["["]; commands = ["parent_cursor_move_up"] };
|
||||
{ keys = ["]"]; commands = ["parent_cursor_move_down"] };
|
||||
|
||||
{ keys = ["c"; "d"]; commands = [":cd "] };
|
||||
{ keys = ["x"; "x"]; commands = ["cut_files"] };
|
||||
{ keys = ["c"; "c"]; commands = ["copy_files"] };
|
||||
{ keys = ["c"; "n"]; commands = ["copy_filename"] };
|
||||
{ keys = ["c"; "e"]; commands = ["copy_filename_without_extension"] };
|
||||
{ keys = ["c"; "f"]; commands = ["copy_filepath"] };
|
||||
{ keys = ["c"; "F"]; commands = ["copy_filepath --all-selected=true"] };
|
||||
{ keys = ["c"; "p"]; commands = ["copy_dirpath"] };
|
||||
|
||||
{ keys = ["p"; "l"]; commands = ["symlink_files --relative=false"] };
|
||||
{ keys = ["p"; "L"]; commands = ["symlink_files --relative=true"] };
|
||||
|
||||
{ keys = ["delete"]; commands = ["delete_files"] };
|
||||
{ keys = ["d"; "d"]; commands = ["delete_files --noconfirm"] };
|
||||
{ keys = ["d"; "D"]; commands = ["delete_files --noconfirm --permanently"] };
|
||||
|
||||
{ keys = ["v"; "v"]; commands = ["paste_files"] };
|
||||
{ keys = ["v"; "V"]; commands = ["paste_files --overwrite=true"] };
|
||||
|
||||
{ keys = ["r"; "r"]; commands = ["rename_append"] };
|
||||
{ keys = ["r"; "R"]; commands = ["rename_prepend"] };
|
||||
{ keys = ["r"; "c"]; commands = [":rename "] };
|
||||
|
||||
{ keys = ["m"; "f"]; commands = [":touch "] };
|
||||
{ keys = ["m"; "d"]; commands = [":mkdir "] };
|
||||
|
||||
{ keys = [" "]; commands = ["select --toggle=true"] };
|
||||
{ keys = ["v"; "a"]; commands = ["select --all=true --toggle=true"] };
|
||||
{ keys = ["v"; "i"]; commands = ["toggle_visual"] };
|
||||
|
||||
{ keys = ["w"]; commands = ["show_tasks --exit-key=w"] };
|
||||
{ keys = ["r"; "b"]; commands = ["bulk_rename"] };
|
||||
{ keys = ["="]; commands = ["set_mode"] };
|
||||
|
||||
{ keys = [":"]; commands = [":"] };
|
||||
{ keys = [";"]; commands = [":"] };
|
||||
|
||||
{ keys = ["'"]; commands = [":shell "] };
|
||||
|
||||
{ keys = ["/"]; commands = [":search "] };
|
||||
{ keys = ["|"]; commands = [":search_inc "] };
|
||||
{ keys = ["\\"]; commands = [":search_glob "] };
|
||||
{ keys = ["f"; "s"]; commands = ["search_fzf"] };
|
||||
{ keys = ["f"; "d"]; commands = ["subdir_fzf"] };
|
||||
|
||||
{ keys = ["n"]; commands = ["search_next"] };
|
||||
{ keys = ["N"]; commands = ["search_prev"] };
|
||||
|
||||
{ keys = ["s"; "r"]; commands = ["sort reverse"] };
|
||||
{ keys = ["s"; "l"]; commands = ["sort lexical"] };
|
||||
{ keys = ["s"; "L"]; commands = ["sort lexical --reverse=true"] };
|
||||
{ keys = ["s"; "m"]; commands = ["sort mtime"] };
|
||||
{ keys = ["s"; "M"]; commands = ["sort mtime --reverse=true"] };
|
||||
{ keys = ["s"; "n"]; commands = ["sort natural"] };
|
||||
{ keys = ["s"; "N"]; commands = ["sort natural --reverse=true"] };
|
||||
{ keys = ["s"; "s"]; commands = ["sort size"] };
|
||||
{ keys = ["s"; "S"]; commands = ["sort size --reverse=true"] };
|
||||
{ keys = ["s"; "e"]; commands = ["sort ext"] };
|
||||
{ keys = ["s"; "E"]; commands = ["sort ext --reverse=true"] };
|
||||
|
||||
{ keys = ["m"; "s"]; commands = ["linemode size"] };
|
||||
{ keys = ["m"; "m"]; commands = ["linemode mtime"] };
|
||||
{ keys = ["m"; "M"]; commands = ["linemode size | mtime"] };
|
||||
{ keys = ["m"; "u"]; commands = ["linemode user"] };
|
||||
{ keys = ["m"; "U"]; commands = ["linemode user | group"] };
|
||||
{ keys = ["m"; "p"]; commands = ["linemode perm"] };
|
||||
|
||||
{ keys = ["g"; "r"]; commands = ["cd /"] };
|
||||
{ keys = ["g"; "c"]; commands = ["cd ~/.config"] };
|
||||
{ keys = ["g"; "w"]; commands = ["cd ~/.walls"] };
|
||||
{ keys = ["g"; "d"]; commands = ["cd ~/Загрузки"] };
|
||||
{ keys = ["g"; "h"]; commands = ["cd ~/"] };
|
||||
{ keys = ["?"]; commands = ["help"] };
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./theme.nix
|
||||
./mime.nix
|
||||
./previewer.nix
|
||||
];
|
||||
programs.joshuto = {
|
||||
enable = true;
|
||||
settings = {
|
||||
numbered_command = false;
|
||||
mouse_support = true;
|
||||
focus_on_create = true;
|
||||
use_trash = true;
|
||||
watch_files = true;
|
||||
xdg_open = true;
|
||||
xdg_open_fork = true;
|
||||
# case_insensitive_ext = false;
|
||||
zoxide_update = true;
|
||||
display = {
|
||||
mode = "default";
|
||||
automatically_count_files = false;
|
||||
collapse_preview = true;
|
||||
column_ratio = [1 4 4];
|
||||
scroll_offset = 6;
|
||||
show_borders = false;
|
||||
show_hidden = false;
|
||||
show_icons = true;
|
||||
# line_number_style = "relative";
|
||||
tilde_in_titlebar = false;
|
||||
linemode = "size";
|
||||
sort = {
|
||||
sort_method = "natural";
|
||||
case_sensitive = false;
|
||||
directories_first = true;
|
||||
reverse = false;
|
||||
};
|
||||
};
|
||||
preview = {
|
||||
max_preview_size = 100000000;
|
||||
use_xdg_thumbs = true;
|
||||
xdg_thumb_size = "xlarge";
|
||||
preview_script = "~/.config/joshuto/preview_file.sh";
|
||||
};
|
||||
tab.home_page = "inherit";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,172 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.joshuto.mimetype = {
|
||||
class = {
|
||||
audio_default = [
|
||||
{ command = "mpv"; args = [ "--" ]; }
|
||||
];
|
||||
image_default = [
|
||||
{ command = "swayimg"; args = [ "-f --" ]; }
|
||||
];
|
||||
text_default = [
|
||||
{ command = "hx"; }
|
||||
{ command = "bat"; args = [ "--paging=always" ]; }
|
||||
];
|
||||
libreoffice_default = [
|
||||
{ command = "libreoffice"; fork = true; silent = true; }
|
||||
];
|
||||
};
|
||||
|
||||
text = { "inherit" = "text_default"; };
|
||||
|
||||
extensions = {
|
||||
# OFFICE
|
||||
odt."inherit" = "libreoffice_default";
|
||||
odf."inherit" = "libreoffice_default";
|
||||
ods."inherit" = "libreoffice_default";
|
||||
odp."inherit" = "libreoffice_default";
|
||||
doc."inherit" = "libreoffice_default";
|
||||
docx."inherit" = "libreoffice_default";
|
||||
xls."inherit" = "libreoffice_default";
|
||||
xlsx."inherit" = "libreoffice_default";
|
||||
ppt."inherit" = "libreoffice_default";
|
||||
pptx."inherit" = "libreoffice_default";
|
||||
pdf."inherit" = "libreoffice_default";
|
||||
|
||||
"vnd.efi.iso.inherit" = [ # ISO
|
||||
{ command = "popsicle-gtk"; fork = true; silent = true; }
|
||||
];
|
||||
x-bittorrent."inherit" = [ # TORRENT
|
||||
{ command = "transmission-gtk"; fork = true; silent = true; }
|
||||
];
|
||||
|
||||
# ARCHIVES
|
||||
"7z".app_list = [
|
||||
{ command = "7z"; args = [ "x" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
bz2.app_list = [
|
||||
{ command = "tar"; args = [ "-xvjf" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
gz.app_list = [
|
||||
{ command = "tar"; args = [ "-xvzf" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
tar.app_list = [
|
||||
{ command = "tar"; args = [ "-xvf" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
tgz.app_list = [
|
||||
{ command = "tar"; args = [ "-xvzf" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
rar.app_list = [
|
||||
{ command = "unrar"; args = [ "x" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
xz.app_list = [
|
||||
{ command = "tar"; args = [ "-xvJf" ]; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
zip.app_list = [
|
||||
{ command = "unzip"; }
|
||||
{ command = "file-roller"; fork = true; silent = true; }
|
||||
];
|
||||
|
||||
## audio formats
|
||||
aac."inherit" = "audio_default";
|
||||
ac3."inherit" = "audio_default";
|
||||
aiff."inherit" = "audio_default";
|
||||
ape."inherit" = "audio_default";
|
||||
dts."inherit" = "audio_default";
|
||||
flac."inherit" = "audio_default";
|
||||
m4a."inherit" = "audio_default";
|
||||
mp3."inherit" = "audio_default";
|
||||
oga."inherit" = "audio_default";
|
||||
ogg."inherit" = "audio_default";
|
||||
opus."inherit" = "audio_default";
|
||||
wav."inherit" = "audio_default";
|
||||
wv."inherit" = "audio_default";
|
||||
|
||||
## video formats
|
||||
avi."inherit" = "video_default";
|
||||
av1."inherit" = "video_default";
|
||||
flv."inherit" = "video_default";
|
||||
mkv."inherit" = "video_default";
|
||||
m4v."inherit" = "video_default";
|
||||
mov."inherit" = "video_default";
|
||||
mp4."inherit" = "video_default";
|
||||
ts."inherit" = "video_default";
|
||||
webm."inherit" = "video_default";
|
||||
wmv."inherit" = "video_default";
|
||||
|
||||
## text formats
|
||||
bib."inherit" = "text_default";
|
||||
build."inherit" = "text_default";
|
||||
c."inherit" = "text_default";
|
||||
cfg."inherit" = "text_default";
|
||||
cmake."inherit" = "text_default";
|
||||
conf."inherit" = "text_default";
|
||||
cpp."inherit" = "text_default";
|
||||
css."inherit" = "text_default";
|
||||
csv."inherit" = "text_default";
|
||||
cu."inherit" = "text_default";
|
||||
desktop."inherit" = "text_default";
|
||||
ebuild."inherit" = "text_default";
|
||||
eex."inherit" = "text_default";
|
||||
env."inherit" = "text_default";
|
||||
ex."inherit" = "text_default";
|
||||
exs."inherit" = "text_default";
|
||||
go."inherit" = "text_default";
|
||||
gpl."inherit" = "text_default";
|
||||
h."inherit" = "text_default";
|
||||
hpp."inherit" = "text_default";
|
||||
hs."inherit" = "text_default";
|
||||
ini."inherit" = "text_default";
|
||||
ipynb."inherit" = "text_default";
|
||||
java."inherit" = "text_default";
|
||||
jl."inherit" = "text_default";
|
||||
js."inherit" = "text_default";
|
||||
json."inherit" = "text_default";
|
||||
jsonc."inherit" = "text_default";
|
||||
kdl."inherit" = "text_default";
|
||||
kt."inherit" = "text_default";
|
||||
kvconfig."inherit" = "text_default";
|
||||
lock."inherit" = "text_default";
|
||||
log."inherit" = "text_default";
|
||||
lua."inherit" = "text_default";
|
||||
md."inherit" = "text_default";
|
||||
micro."inherit" = "text_default";
|
||||
ninja."inherit" = "text_default";
|
||||
nix."inherit" = "text_default";
|
||||
norg."inherit" = "text_default";
|
||||
org."inherit" = "text_default";
|
||||
po."inherit" = "text_default";
|
||||
pot."inherit" = "text_default";
|
||||
py."inherit" = "text_default";
|
||||
qmd."inherit" = "text_default";
|
||||
rasi."inherit" = "text_default";
|
||||
rkt."inherit" = "text_default";
|
||||
rktd."inherit" = "text_default";
|
||||
rproj."inherit" = "text_default";
|
||||
rs."inherit" = "text_default";
|
||||
rstheme."inherit" = "text_default";
|
||||
scm."inherit" = "text_default";
|
||||
scss."inherit" = "text_default";
|
||||
service."inherit" = "text_default";
|
||||
sh."inherit" = "text_default";
|
||||
socket."inherit" = "text_default";
|
||||
sql."inherit" = "text_default";
|
||||
srt."inherit" = "text_default";
|
||||
svelte."inherit" = "text_default";
|
||||
toml."inherit" = "text_default";
|
||||
tsx."inherit" = "text_default";
|
||||
txt."inherit" = "text_default";
|
||||
vim."inherit" = "text_default";
|
||||
xml."inherit" = "text_default";
|
||||
yaml."inherit" = "text_default";
|
||||
yml."inherit" = "text_default";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
xdg.configFile = {
|
||||
"joshuto/previewer.sh" = {
|
||||
executable = true;
|
||||
source = let
|
||||
previewFile = pkgs.fetchFromGitHub {
|
||||
"owner" = "kamiyaa";
|
||||
"repo" = "joshuto";
|
||||
"rev" = "9728c35ef7058bc4919765f720d4f5b9bdb17da1";
|
||||
"hash" = "sha256-k5/p9C+zvYCa7dSl6wAKojUsUnAHo7ovVlqTyAwaTn0=";
|
||||
};
|
||||
in "${previewFile}/config/preview_file.sh";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,76 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.joshuto.theme = {
|
||||
tabs.styles = {
|
||||
active = {
|
||||
bg = "none";
|
||||
fg = "blue";
|
||||
bold = true;
|
||||
};
|
||||
inactive = {
|
||||
bg = "none";
|
||||
fg = "gray";
|
||||
bold = true;
|
||||
};
|
||||
scroll_front = {
|
||||
fg = "yellow";
|
||||
bold = true;
|
||||
};
|
||||
scroll_back = {
|
||||
fg = "yellow";
|
||||
bold = true;
|
||||
};
|
||||
};
|
||||
selection = {
|
||||
fg = "yellow";
|
||||
bold = true;
|
||||
prefix = " ";
|
||||
};
|
||||
visual_mode_selection = {
|
||||
fg = "light_red";
|
||||
bold = true;
|
||||
prefix = "v ";
|
||||
};
|
||||
regular = {
|
||||
fg = "white";
|
||||
};
|
||||
directory = {
|
||||
fg = "light_blue";
|
||||
bold = true;
|
||||
};
|
||||
link = {
|
||||
fg = "cyan";
|
||||
bold = true;
|
||||
};
|
||||
socket = {
|
||||
fg = "light_magenta";
|
||||
bold = true;
|
||||
};
|
||||
executable = {
|
||||
fg = "light_green";
|
||||
bold = true;
|
||||
};
|
||||
link_invalid = {
|
||||
fg = "red";
|
||||
bold = true;
|
||||
};
|
||||
tabs.chars = {
|
||||
active_prefix = "[";
|
||||
active_postfix = "]";
|
||||
inactive_prefix = " ";
|
||||
inactive_postfix = "";
|
||||
divider = " | ";
|
||||
scroll_front_prefix = "";
|
||||
scroll_front_postfix = "";
|
||||
scroll_front_prestring = "« ";
|
||||
scroll_front_poststring = " ";
|
||||
scroll_back_prefix = "";
|
||||
scroll_back_postfix = "";
|
||||
scroll_back_prestring = " ";
|
||||
scroll_back_poststring = " »";
|
||||
padding_prefix = " ";
|
||||
padding_postfix = " ";
|
||||
padding_fill = " ";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
programs.micro = {
|
||||
enable = true;
|
||||
settings = {
|
||||
clipboard = "terminal";
|
||||
colorscheme = "helios";
|
||||
colorscheme = "base16";
|
||||
autosu = true;
|
||||
mkparents = true;
|
||||
scrollbar = true;
|
||||
|
@ -16,7 +15,7 @@
|
|||
saveundo = true;
|
||||
};
|
||||
};
|
||||
xdg.configFile."micro/colorschemes/helios.micro".text = ''
|
||||
xdg.configFile."micro/colorschemes/base16.micro".text = ''
|
||||
color-link comment "bold white"
|
||||
color-link constant "cyan"
|
||||
color-link constant.bool "bold cyan"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, yazi, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
fff
|
||||
|
||||
|
|
|
@ -1,53 +1,139 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.yazi.keymap = {
|
||||
manager = {
|
||||
prepend_keymap = [
|
||||
# MAIN
|
||||
{ on = "q"; run = "close"; }
|
||||
{ on = "l"; run = "plugin --sync smart-enter"; }
|
||||
{ on = "!"; run = "shell '$SHELL' --block --confirm"; }
|
||||
{
|
||||
on = "q";
|
||||
run = "close";
|
||||
}
|
||||
{
|
||||
on = "l";
|
||||
run = "plugin --sync smart-enter";
|
||||
}
|
||||
{
|
||||
on = "!";
|
||||
run = "shell '$SHELL' --block --confirm";
|
||||
}
|
||||
|
||||
{ on = "<Esc>"; run = "close"; }
|
||||
{ on = "<Right>"; run = "plugin --sync smart-enter"; }
|
||||
{ on = "<Enter>"; run = "plugin --sync smart-enter"; }
|
||||
{
|
||||
on = "<Esc>";
|
||||
run = "close";
|
||||
}
|
||||
{
|
||||
on = "<Right>";
|
||||
run = "plugin --sync smart-enter";
|
||||
}
|
||||
{
|
||||
on = "<Enter>";
|
||||
run = "plugin --sync smart-enter";
|
||||
}
|
||||
|
||||
# VISUAL
|
||||
{ on = [ "v" "m" ]; run = "plugin --sync max-preview"; }
|
||||
{ on = [ "v" "p" ]; run = "plugin --sync hide-preview"; }
|
||||
{ on = [ "v" "v" ]; run = "visual_mode"; }
|
||||
{ on = [ "v" "V" ]; run = "visual_mode --unset"; }
|
||||
{ on = [ "v" "a" ]; run = "select_all --state=true"; }
|
||||
{ on = [ "v" "r" ]; run = "select_all --state=none"; }
|
||||
{ on = [ "v" "h" ]; run = "hidden toggle"; }
|
||||
{
|
||||
on = [ "v" "m" ];
|
||||
run = "plugin --sync max-preview";
|
||||
}
|
||||
{
|
||||
on = [ "v" "p" ];
|
||||
run = "plugin --sync hide-preview";
|
||||
}
|
||||
{
|
||||
on = [ "v" "v" ];
|
||||
run = "visual_mode";
|
||||
}
|
||||
{
|
||||
on = [ "v" "V" ];
|
||||
run = "visual_mode --unset";
|
||||
}
|
||||
{
|
||||
on = [ "v" "a" ];
|
||||
run = "select_all --state=true";
|
||||
}
|
||||
{
|
||||
on = [ "v" "r" ];
|
||||
run = "select_all --state=none";
|
||||
}
|
||||
{
|
||||
on = [ "v" "h" ];
|
||||
run = "hidden toggle";
|
||||
}
|
||||
|
||||
# DELETION
|
||||
{ on = [ "d" "d" ]; run = "remove"; }
|
||||
{ on = [ "d" "D" ]; run = "remove --permanently"; }
|
||||
{ on = [ "D" "d" ]; run = "remove --force"; }
|
||||
{ on = [ "D" "D" ]; run = "remove --permanently --force"; }
|
||||
{
|
||||
on = [ "d" "d" ];
|
||||
run = "remove";
|
||||
}
|
||||
{
|
||||
on = [ "d" "D" ];
|
||||
run = "remove --permanently";
|
||||
}
|
||||
{
|
||||
on = [ "D" "d" ];
|
||||
run = "remove --force";
|
||||
}
|
||||
{
|
||||
on = [ "D" "D" ];
|
||||
run = "remove --permanently --force";
|
||||
}
|
||||
|
||||
# CREATE
|
||||
{ on = [ "a" "f" ]; run = "create"; }
|
||||
{ on = [ "a" "d" ]; run = "create --dir"; }
|
||||
{
|
||||
on = [ "a" "f" ];
|
||||
run = "create";
|
||||
}
|
||||
{
|
||||
on = [ "a" "d" ];
|
||||
run = "create --dir";
|
||||
}
|
||||
|
||||
# RENAME
|
||||
{ on = [ "r" "r" ]; run = "rename"; }
|
||||
{ on = [ "r" "n" ]; run = "rename --empty=stem"; }
|
||||
{ on = [ "r" "e" ]; run = "rename --empty=ext"; }
|
||||
{ on = [ "r" "a" ]; run = "rename --empty=all"; }
|
||||
{
|
||||
on = [ "r" "r" ];
|
||||
run = "rename";
|
||||
}
|
||||
{
|
||||
on = [ "r" "n" ];
|
||||
run = "rename --empty=stem";
|
||||
}
|
||||
{
|
||||
on = [ "r" "e" ];
|
||||
run = "rename --empty=ext";
|
||||
}
|
||||
{
|
||||
on = [ "r" "a" ];
|
||||
run = "rename --empty=all";
|
||||
}
|
||||
|
||||
# NAVIGATE
|
||||
{ on = [ "c" "d" ]; run = "cd --interactive"; }
|
||||
{ on = [ "g" "f" ]; run = "cd ~/.flake"; }
|
||||
{ on = [ "g" "w" ]; run = "cd ~/.flake/hosts/wyswort"; }
|
||||
{ on = [ "g" "m" ]; run = "cd ~/.flake/home/megamozg"; }
|
||||
{
|
||||
on = [ "c" "d" ];
|
||||
run = "cd --interactive";
|
||||
}
|
||||
{
|
||||
on = [ "g" "f" ];
|
||||
run = "cd ~/.flake";
|
||||
}
|
||||
{
|
||||
on = [ "g" "w" ];
|
||||
run = "cd ~/.flake/hosts/wyswort";
|
||||
}
|
||||
{
|
||||
on = [ "g" "m" ];
|
||||
run = "cd ~/.flake/home/megamozg";
|
||||
}
|
||||
];
|
||||
};
|
||||
completion = {
|
||||
prepend_keymap = [
|
||||
{ on = "<C-j>"; run = "arrow 1"; }
|
||||
{ on = "<C-k>"; run = "arrow -1"; }
|
||||
{
|
||||
on = "<C-j>";
|
||||
run = "arrow 1";
|
||||
}
|
||||
{
|
||||
on = "<C-k>";
|
||||
run = "arrow -1";
|
||||
}
|
||||
# { on = "C-l"; run = "lose --submit" "close_input --submit" ; }
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
let
|
||||
ypkg = inputs.yazi.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./binds.nix
|
||||
./theme.nix
|
||||
./lua.nix
|
||||
./plugins.nix
|
||||
./starship.nix
|
||||
];
|
||||
let ypkg = inputs.yazi.packages.${pkgs.system}.default;
|
||||
in {
|
||||
imports = [ ./binds.nix ./theme.nix ./lua.nix ./plugins.nix ./starship.nix ];
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
package = ypkg;
|
||||
|
@ -32,34 +24,67 @@ in
|
|||
max_width = 1000;
|
||||
};
|
||||
opener = {
|
||||
edit = [
|
||||
{ run = "hx $@"; block = true; }
|
||||
];
|
||||
play = [
|
||||
{ run = "mpv $@"; orphan = true; }
|
||||
];
|
||||
open = [
|
||||
{ run = "xdg-open $@"; }
|
||||
];
|
||||
edit = [{
|
||||
run = "hx $@";
|
||||
block = true;
|
||||
}];
|
||||
play = [{
|
||||
run = "mpv $@";
|
||||
orphan = true;
|
||||
}];
|
||||
open = [{ run = "xdg-open $@"; }];
|
||||
};
|
||||
open = {
|
||||
rules = [
|
||||
{ mime = "text/*"; use = "edit"; }
|
||||
{ mime = "video/*"; use = "play"; }
|
||||
{ mime = "audio/*"; use = "play"; }
|
||||
{ mime = "image/*"; use = "open"; }
|
||||
{
|
||||
mime = "text/*";
|
||||
use = "edit";
|
||||
}
|
||||
{
|
||||
mime = "video/*";
|
||||
use = "play";
|
||||
}
|
||||
{
|
||||
mime = "audio/*";
|
||||
use = "play";
|
||||
}
|
||||
{
|
||||
mime = "image/*";
|
||||
use = "open";
|
||||
}
|
||||
];
|
||||
};
|
||||
plugin = {
|
||||
prepend_previewers = [
|
||||
{ mime = "application/*zip"; run = "ouch"; }
|
||||
{ mime = "application/x-tar"; run = "ouch"; }
|
||||
{ mime = "application/x-bzip2"; run = "ouch"; }
|
||||
{ mime = "application/x-7z-compressed"; run = "ouch"; }
|
||||
{ mime = "application/x-rar"; run = "ouch"; }
|
||||
{ mime = "application/x-xz"; run = "ouch"; }
|
||||
{
|
||||
mime = "application/*zip";
|
||||
run = "ouch";
|
||||
}
|
||||
{
|
||||
mime = "application/x-tar";
|
||||
run = "ouch";
|
||||
}
|
||||
{
|
||||
mime = "application/x-bzip2";
|
||||
run = "ouch";
|
||||
}
|
||||
{
|
||||
mime = "application/x-7z-compressed";
|
||||
run = "ouch";
|
||||
}
|
||||
{
|
||||
mime = "application/x-rar";
|
||||
run = "ouch";
|
||||
}
|
||||
{
|
||||
mime = "application/x-xz";
|
||||
run = "ouch";
|
||||
}
|
||||
|
||||
{ name = "*.md"; run = "glow"; }
|
||||
{
|
||||
name = "*.md";
|
||||
run = "glow";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.yazi.initLua = ''
|
||||
require("no-status"):setup()
|
||||
-- require("starship"):setup()
|
||||
|
|
|
@ -6,8 +6,7 @@ let
|
|||
rev = "74a837c6eafba59e22dc3d8d8ec630934580c70c";
|
||||
hash = "sha256-h+CoRLRyC+fJogfAoOw7twXSRkUotbgnS3gBFvlxNlw=";
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
# PLUGINS FROM REPO
|
||||
programs.yazi.plugins = {
|
||||
# BUILTINED
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
xdg.configFile = with config.lib.stylix.colors; {
|
||||
"yazi/star.toml".text = ''
|
||||
# format = """
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
|
|
|
@ -11,12 +11,11 @@ python3Packages.buildPythonApplication rec{
|
|||
hash = "sha256-1jfPl+Vh7c4zWjQJ/qdvFOhXBvVTX4iqShxoMtbN6j4=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [
|
||||
poetry-core
|
||||
];
|
||||
build-system = with python3Packages; [ poetry-core ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
( python3.withPackages ( ps: with ps; [ httpx ] ++ httpx.optional-dependencies.http2 ) )
|
||||
(python3.withPackages
|
||||
(ps: with ps; [ httpx ] ++ httpx.optional-dependencies.http2))
|
||||
(pkgs.callPackage ./chompjs.nix { })
|
||||
attrs
|
||||
parsel
|
||||
|
|
|
@ -11,10 +11,7 @@ python3Packages.buildPythonApplication rec{
|
|||
hash = "sha256-s8uI0ch+SPqthHy+d0jcB6o5/Zqx89JHM68Q00nwCFA=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [
|
||||
hatchling
|
||||
setuptools
|
||||
];
|
||||
build-system = with python3Packages; [ hatchling setuptools ];
|
||||
|
||||
dependencies = [
|
||||
python3Packages.hatchling
|
||||
|
@ -23,7 +20,8 @@ python3Packages.buildPythonApplication rec{
|
|||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Script to watch anime from terminal with russian translation, written in python.";
|
||||
description =
|
||||
"Script to watch anime from terminal with russian translation, written in python.";
|
||||
homepage = "https://github.com/vypivshiy/ani-cli-ru"; # DEAD
|
||||
license = with licenses; [ gpl3Plus ];
|
||||
maintainers = with maintainers; [ DADA30000 azikx ];
|
||||
|
|
|
@ -11,13 +11,9 @@ python3Packages.buildPythonApplication rec{
|
|||
hash = "sha256-isCzF1XpOTSPsq8cwBw1fbUMhU+j1QbOeSGPwV8FaGg=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
build-system = with python3Packages; [ setuptools ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
dependencies = with python3Packages; [ setuptools ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "chompjs";
|
||||
|
|
|
@ -11,10 +11,7 @@ python3Packages.buildPythonApplication rec{
|
|||
hash = "sha256-8Vo39BePA86wcLKs/F+u2N7tpIpPrEyEPp3POszy050=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [
|
||||
hatchling
|
||||
setuptools
|
||||
];
|
||||
build-system = with python3Packages; [ hatchling setuptools ];
|
||||
|
||||
dependencies = [
|
||||
python3Packages.prompt-toolkit
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
(callPackage ./anicliru/anicli-ru.nix { })
|
||||
# (callPackage ./torrserver/default.nix { })
|
||||
];
|
||||
|
|
|
@ -1,9 +1 @@
|
|||
{
|
||||
imports = [
|
||||
./custom-pkgs
|
||||
./shells
|
||||
./misc
|
||||
./cli
|
||||
./gui
|
||||
];
|
||||
}
|
||||
{ imports = [ ./custom-pkgs ./shells ./misc ./cli ./gui ]; }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
home.file = {
|
||||
".local/share/AyuGramDesktop/tdata/ayu_settings.json".text = ''
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
{ pkgs, inputs, ... }: {
|
||||
imports = [
|
||||
./user
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
{ pkgs, inputs, ... }: {
|
||||
imports = [
|
||||
./user
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
programs.firefox.profiles.dragora = {
|
||||
search = {
|
||||
force = true;
|
||||
|
@ -9,11 +8,18 @@
|
|||
urls = [{
|
||||
template = "https://search.nixos.org/packages?channel=unstable";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
{
|
||||
name = "type";
|
||||
value = "packages";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
icon =
|
||||
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.floorp.profiles.megamozg.settings = {
|
||||
# OTHER
|
||||
"layers.acceleration.force-enabled" = true;
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.floorp.profiles.megamozg.userChrome = ''
|
||||
* {
|
||||
font-family: "JetBrainsMono Nerd Font" !important;
|
||||
font-size: 12pt !important;
|
||||
}
|
||||
'';
|
||||
{ ... }: {
|
||||
programs.floorp.profiles.megamozg.userChrome =
|
||||
" * {\n font-family: \"JetBrainsMono Nerd Font\" !important;\n font-size: 12pt !important; \n }\n";
|
||||
}
|
||||
|
|
|
@ -1,32 +1,6 @@
|
|||
{ ... }:
|
||||
let
|
||||
repo = "https://github.com/axax-loll/fuji-wallpapers/blob/main";
|
||||
in
|
||||
{
|
||||
programs.floorp.profiles.megamozg.userContent = ''
|
||||
@-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {
|
||||
.click-target-container *, .top-sites-list * {
|
||||
color: #fff !important ;
|
||||
text-shadow: 2px 2px 2px #222 !important ;
|
||||
}
|
||||
body::before {
|
||||
content: "" ;
|
||||
z-index: -1 ;
|
||||
position: fixed ;
|
||||
top: 0 ;
|
||||
left: 0 ;
|
||||
background: #0F0F0F no-repeat url("${repo}/synth.png?raw=true") center ;
|
||||
background-size: cover ;
|
||||
width: 100vw ;
|
||||
height: 100vh ;
|
||||
}
|
||||
.logo { background-image: url("${repo}/logo.png?raw=true") !important; }
|
||||
.search-wrapper input { background: #0F0F0F !important; }
|
||||
#PlacesToolbarItems {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
'';
|
||||
let repo = "https://github.com/axax-loll/fuji-wallpapers/blob/main";
|
||||
in {
|
||||
programs.floorp.profiles.megamozg.userContent =
|
||||
" @-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {\n .click-target-container *, .top-sites-list * {\n color: #fff !important ;\n text-shadow: 2px 2px 2px #222 !important ;\n }\n body::before {\n content: \"\" ;\n z-index: -1 ;\n position: fixed ;\n top: 0 ;\n left: 0 ;\n background: #0F0F0F no-repeat url(\"${repo}/synth.png?raw=true\") center ;\n background-size: cover ;\n width: 100vw ;\n height: 100vh ;\n }\n .logo { background-image: url(\"${repo}/logo.png?raw=true\") !important; }\n .search-wrapper input { background: #0F0F0F !important; }\n #PlacesToolbarItems {\n width: 100%;\n display: flex;\n justify-content: center;\n }\n }\n";
|
||||
}
|
||||
|
|
|
@ -1,6 +1 @@
|
|||
{
|
||||
imports = [
|
||||
./chrome.nix
|
||||
./tcr.nix
|
||||
];
|
||||
}
|
||||
{ imports = [ ./chrome.nix ./tcr.nix ]; }
|
||||
|
|
|
@ -1,40 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.floorp.profiles.megamozg.userChrome = ''
|
||||
#TabsToolbar { display: none !important; }
|
||||
#nav-bar { width: 100vw !important; }
|
||||
|
||||
#browser { position: relative; }
|
||||
#sidebar-box[sidebarcommand*="tabcenter"] #sidebar-header { display: none; }
|
||||
|
||||
#sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) {
|
||||
|
||||
display: block;
|
||||
|
||||
position: absolute;
|
||||
top: 0; bottom: 0;
|
||||
z-index: 1;
|
||||
|
||||
min-width: 50px !important; max-width: 50px !important;
|
||||
|
||||
border-right: none;
|
||||
|
||||
transition: all 0.8s ease;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
[sidebarcommand*="tabcenter"] #sidebar,
|
||||
#sidebar-box[sidebarcommand*="tabcenter"]:hover { min-width: 10vw !important; width: 30vw !important; max-width: 250px !important; }
|
||||
|
||||
[sidebarcommand*="tabcenter"] #sidebar { height: 100%; max-height: 100%; }
|
||||
|
||||
#sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) ~ #appcontent { margin-left: 50px; }
|
||||
#main-window[inFullscreen][inDOMFullscreen] #appcontent { margin-left: 0; }
|
||||
/* Removes gap between active tab highlight and edge of bar */
|
||||
#sidebar-box[sidebarcommand="tabcenter-reborn_ariasuni-sidebar-action"] #sidebar-header, #sidebar-box[sidebarcommand="tabcenter-reborn_ariasuni-sidebar-action"] ~ #sidebar-splitter {
|
||||
display: none;
|
||||
}
|
||||
'';
|
||||
{ ... }: {
|
||||
programs.floorp.profiles.megamozg.userChrome =
|
||||
" #TabsToolbar { display: none !important; }\n #nav-bar { width: 100vw !important; }\n \n #browser { position: relative; }\n #sidebar-box[sidebarcommand*=\"tabcenter\"] #sidebar-header { display: none; }\n \n #sidebar-box[sidebarcommand*=\"tabcenter\"]:not([hidden]) {\n \n display: block;\n \n position: absolute;\n top: 0; bottom: 0;\n z-index: 1;\n \n min-width: 50px !important; max-width: 50px !important;\n \n border-right: none;\n \n transition: all 0.8s ease;\n \n overflow: hidden;\n \n }\n \n [sidebarcommand*=\"tabcenter\"] #sidebar,\n #sidebar-box[sidebarcommand*=\"tabcenter\"]:hover { min-width: 10vw !important; width: 30vw !important; max-width: 250px !important; }\n \n [sidebarcommand*=\"tabcenter\"] #sidebar { height: 100%; max-height: 100%; }\n \n #sidebar-box[sidebarcommand*=\"tabcenter\"]:not([hidden]) ~ #appcontent { margin-left: 50px; }\n #main-window[inFullscreen][inDOMFullscreen] #appcontent { margin-left: 0; }\n /* Removes gap between active tab highlight and edge of bar */\n #sidebar-box[sidebarcommand=\"tabcenter-reborn_ariasuni-sidebar-action\"] #sidebar-header, #sidebar-box[sidebarcommand=\"tabcenter-reborn_ariasuni-sidebar-action\"] ~ #sidebar-splitter {\n display: none;\n }\n";
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
# imports = [ ./shaders ];
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
|
@ -10,7 +9,8 @@
|
|||
];
|
||||
scriptOpts = {
|
||||
sponsorblock-minimal = {
|
||||
sponsorblock_minimal-server = "https://sponsor.ajay.app/api/skipSegments";
|
||||
sponsorblock_minimal-server =
|
||||
"https://sponsor.ajay.app/api/skipSegments";
|
||||
sponsorblock_minimal-categories = [ "sponsor" ];
|
||||
};
|
||||
mpv_thumbnail_script = {
|
||||
|
@ -77,15 +77,7 @@
|
|||
|
||||
c = "script-binding videoclip-menu-open";
|
||||
};
|
||||
extraInput = ''
|
||||
CTRL+1 no-osd change-list glsl-shaders set "${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode A (Fast)"
|
||||
CTRL+2 no-osd change-list glsl-shaders set "${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_Soft_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode B (Fast)"
|
||||
CTRL+3 no-osd change-list glsl-shaders set "${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Upscale_Denoise_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode C (Fast)"
|
||||
CTRL+4 no-osd change-list glsl-shaders set "${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_S.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode A+A (Fast)"
|
||||
CTRL+5 no-osd change-list glsl-shaders set "${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_Soft_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_Soft_S.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode B+B (Fast)"
|
||||
CTRL+6 no-osd change-list glsl-shaders set "${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Upscale_Denoise_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_S.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode C+A (Fast)"
|
||||
|
||||
CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"
|
||||
'';
|
||||
extraInput =
|
||||
" CTRL+1 no-osd change-list glsl-shaders set \"${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl\"; show-text \"Anime4K: Mode A (Fast)\"\n CTRL+2 no-osd change-list glsl-shaders set \"${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_Soft_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl\"; show-text \"Anime4K: Mode B (Fast)\"\n CTRL+3 no-osd change-list glsl-shaders set \"${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Upscale_Denoise_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl\"; show-text \"Anime4K: Mode C (Fast)\"\n CTRL+4 no-osd change-list glsl-shaders set \"${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_S.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl\"; show-text \"Anime4K: Mode A+A (Fast)\"\n CTRL+5 no-osd change-list glsl-shaders set \"${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_Soft_M.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_Soft_S.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl\"; show-text \"Anime4K: Mode B+B (Fast)\"\n CTRL+6 no-osd change-list glsl-shaders set \"${pkgs.anime4k}/Anime4K_Clamp_Highlights.glsl:${pkgs.anime4k}/Anime4K_Upscale_Denoise_CNN_x2_M.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${pkgs.anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${pkgs.anime4k}/Anime4K_Restore_CNN_S.glsl:${pkgs.anime4k}/Anime4K_Upscale_CNN_x2_S.glsl\"; show-text \"Anime4K: Mode C+A (Fast)\"\n \n CTRL+0 no-osd change-list glsl-shaders clr \"\"; show-text \"GLSL shaders cleared\"\n";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
package = pkgs.obs-studio;
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{ pkgs, inputs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.nur.hmModules.nur
|
||||
];
|
||||
{ pkgs, inputs, config, ... }: {
|
||||
imports = [ inputs.nur.hmModules.nur ];
|
||||
home.packages = with pkgs; [
|
||||
home-manager
|
||||
|
||||
|
@ -40,11 +37,7 @@
|
|||
superTuxKart
|
||||
|
||||
(prismlauncher.override {
|
||||
jdks = [
|
||||
temurin-bin-21
|
||||
temurin-bin-17
|
||||
temurin-bin-8
|
||||
];
|
||||
jdks = [ temurin-bin-21 temurin-bin-17 temurin-bin-8 ];
|
||||
})
|
||||
|
||||
config.nur.repos.abszero.palgen
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
xdg.configFile = {
|
||||
# CONFIG FILE
|
||||
"qBittorrent/qBittorrent.conf".text = ''
|
||||
|
|
|
@ -1,6 +1 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
{ ... }: { programs.qutebrowser = { enable = true; }; }
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, config, inputs, ... }:
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
||||
in
|
||||
{
|
||||
let spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
||||
in {
|
||||
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
||||
programs.spicetify = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
xdg.configFile = with config.lib.stylix.colors; {
|
||||
"swayimg/config".text = ''
|
||||
################################################################################
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
dconf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
button-layout = "";
|
||||
};
|
||||
"org/gnome/desktop/wm/preferences" = { button-layout = ""; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
home.sessionVariables = {
|
||||
MICRO_TRUECOLOR = "1";
|
||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
nix = {
|
||||
package = pkgs.nix;
|
||||
settings = {
|
||||
|
@ -8,18 +7,13 @@
|
|||
extra-experimental-features = [ "nix-command" "flakes" ];
|
||||
builders-use-substitutes = true;
|
||||
auto-optimise-store = true;
|
||||
extra-substituters = [
|
||||
"https://yazi.cachix.org"
|
||||
"https://cache.garnix.io"
|
||||
];
|
||||
extra-substituters =
|
||||
[ "https://yazi.cachix.org" "https://cache.garnix.io" ];
|
||||
extra-trusted-public-keys = [
|
||||
"yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k="
|
||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||
];
|
||||
trusted-users = [
|
||||
"megamozg"
|
||||
"@wheel"
|
||||
];
|
||||
trusted-users = [ "megamozg" "@wheel" ];
|
||||
};
|
||||
};
|
||||
nixpkgs.config = {
|
||||
|
|
|
@ -1,21 +1,6 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
xdg.configFile = with config.lib.stylix.colors; {
|
||||
"nwg-drawer/drawer.css".text = ''
|
||||
window {
|
||||
background-color: #${base00};
|
||||
color: #eeeeee;
|
||||
}
|
||||
|
||||
button {
|
||||
color: #${base04};
|
||||
background-color: #${base00};
|
||||
}
|
||||
|
||||
button:hover {
|
||||
color: #${base04};
|
||||
background-color: #${base01};
|
||||
}
|
||||
'';
|
||||
"nwg-drawer/drawer.css".text =
|
||||
" window {\n background-color: #${base00};\n color: #eeeeee;\n }\n \n button {\n color: #${base04};\n background-color: #${base00};\n }\n \n button:hover {\n color: #${base04};\n background-color: #${base01};\n }\n";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, config, ... }:
|
||||
let
|
||||
hmdir = config.home.homeDirectory;
|
||||
in
|
||||
{
|
||||
let hmdir = config.home.homeDirectory;
|
||||
in {
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
|
@ -12,9 +10,7 @@ in
|
|||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
mime = {
|
||||
enable = true;
|
||||
};
|
||||
mime = { enable = true; };
|
||||
mimeApps = {
|
||||
# defaultApplications = {
|
||||
# "default-web-browser" = [ "floorp.desktop" ];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
|
@ -28,7 +27,8 @@
|
|||
cat = "bat --theme base16";
|
||||
|
||||
ff = "fastfetch";
|
||||
of = "nix run nixpkgs#onefetch -- -d commits churn license head --no-art --no-color-palette -t 5";
|
||||
of =
|
||||
"nix run nixpkgs#onefetch -- -d commits churn license head --no-art --no-color-palette -t 5";
|
||||
|
||||
r = "ranger";
|
||||
y = "yazi";
|
||||
|
@ -71,14 +71,11 @@
|
|||
nxr = "nix run";
|
||||
nxf = "nix-prefetch-github";
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
[ "$(tty)" = /dev/tty1 ] && exec Hyprland
|
||||
'';
|
||||
interactiveShellInit =
|
||||
" set fish_greeting\n [ \"$(tty)\" = /dev/tty1 ] && exec Hyprland\n";
|
||||
};
|
||||
xdg.configFile = {
|
||||
"lutgen/paradise".text = ''
|
||||
151515 1F1F1F 2E2E2E 424242 BBB6B6 E8E3E3 E8E3E3 E8E3E3 B66467 D9BC8C D9BC8C 8C977D 8AA6A2 8DA3B9 A988B0 BBB6B6
|
||||
'';
|
||||
"lutgen/paradise".text =
|
||||
" 151515 1F1F1F 2E2E2E 424242 BBB6B6 E8E3E3 E8E3E3 E8E3E3 B66467 D9BC8C D9BC8C 8C977D 8AA6A2 8DA3B9 A988B0 BBB6B6\n";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
{ lib, ... }: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -15,11 +14,11 @@
|
|||
"$character"
|
||||
];
|
||||
shell = {
|
||||
fish_indicator = "\[fish\]($style)";
|
||||
zsh_indicator = "\[zsh\]($style)";
|
||||
bash_indicator = "\[bash\]($style)";
|
||||
nu_indicator = "\[nu\]($style)";
|
||||
unknown_indicator = "\[sh ?\]";
|
||||
fish_indicator = "[fish]($style)";
|
||||
zsh_indicator = "[zsh]($style)";
|
||||
bash_indicator = "[bash]($style)";
|
||||
nu_indicator = "[nu]($style)";
|
||||
unknown_indicator = "[sh ?]";
|
||||
style = "bold fg:purple";
|
||||
disabled = false;
|
||||
};
|
||||
|
@ -48,9 +47,7 @@
|
|||
truncation_symbol = "";
|
||||
disabled = false;
|
||||
};
|
||||
package = {
|
||||
format = "via [ $version](bold fg:yellow) ";
|
||||
};
|
||||
package = { format = "via [ $version](bold fg:yellow) "; };
|
||||
cmd_duration = {
|
||||
min_time = 1000;
|
||||
format = "took [$duration](bold fg:yellow)";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
{ pkgs, lib, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
|
@ -14,7 +13,8 @@
|
|||
};
|
||||
font = lib.mkForce {
|
||||
name = "JetBrainsMono NerdFont";
|
||||
package = pkgs.nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; };
|
||||
package =
|
||||
pkgs.nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; };
|
||||
size = 12;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,7 +1 @@
|
|||
{
|
||||
imports = [
|
||||
./qt5ct.nix
|
||||
./qt6ct.nix
|
||||
./qt.nix
|
||||
];
|
||||
}
|
||||
{ imports = [ ./qt5ct.nix ./qt6ct.nix ./qt.nix ]; }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
{ pkgs, config, ... }: {
|
||||
xdg.configFile = with config.lib.stylix.colors; {
|
||||
"qt5ct/colors/paradise.conf".text = ''
|
||||
[ColorScheme]
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
xdg.configFile = {
|
||||
"qt6ct/colors/paradise.conf".text = ''
|
||||
[ColorScheme]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ inputs, ... }:
|
||||
let walls = inputs.nix-wallpapers; in
|
||||
{
|
||||
let walls = inputs.nix-wallpapers;
|
||||
in {
|
||||
stylix = {
|
||||
image = "${walls}/desktop/cassette.jpg";
|
||||
base16Scheme = {
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.stylix.homeManagerModules.stylix
|
||||
./paradise.nix
|
||||
];
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
imports = [ inputs.stylix.homeManagerModules.stylix ./paradise.nix ];
|
||||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = false;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
{ pkgs, config, ... }: {
|
||||
wayland.windowManager.hyprland.settings = with pkgs; {
|
||||
# SHORTCUTS
|
||||
"$m" = "SUPER";
|
||||
|
@ -90,8 +89,9 @@
|
|||
"$s, $p, exec, grimblast copysave output $(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')"
|
||||
"$a, $p, exec, grimblast copysave active $(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')"
|
||||
"$a $s, $p, exec, hyprpicker -a"
|
||||
]
|
||||
++ ( builtins.concatLists (builtins.genList (i: let ws = i + 1; in [
|
||||
] ++ (builtins.concatLists (builtins.genList (i:
|
||||
let ws = i + 1;
|
||||
in [
|
||||
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
||||
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||
]) 9));
|
||||
|
@ -152,7 +152,7 @@
|
|||
"$s, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%-"
|
||||
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
", XF86AudioMicMute, exec, fixf4=$(cat /sys/class/leds/platform\:\:micmute/brightness); echo $((1-fixf4)) | doas tee /sys/class/leds/platform\:\:micmute/brightness; wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||
", XF86AudioMicMute, exec, fixf4=$(cat /sys/class/leds/platform::micmute/brightness); echo $((1-fixf4)) | doas tee /sys/class/leds/platform::micmute/brightness; wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||
];
|
||||
bindl = [
|
||||
# ", switch:on:Lid Switch, exec, hyprctl keyword input:kb_variant = us && hyprlock"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
let
|
||||
hpkg = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
let hpkg = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
in {
|
||||
imports = [ ./binds.nix ./rules.nix ./settings.nix ./plugins.nix ];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, inputs, config, ... }:
|
||||
{
|
||||
{ pkgs, inputs, config, ... }: {
|
||||
wayland.windowManager.hyprland = with config.lib.stylix.colors; {
|
||||
plugins = with inputs; [
|
||||
plugins = with inputs;
|
||||
[
|
||||
hyprfocus.packages.${pkgs.system}.default
|
||||
# hyprland-plugins.packages.${pkgs.system}.hyprexpo
|
||||
];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
{ config, lib, ... }: {
|
||||
wayland.windowManager.hyprland.settings = with config.lib.stylix.colors; {
|
||||
windowrulev2 = [
|
||||
# "rounding 8, floating:1"
|
||||
|
@ -7,6 +6,7 @@
|
|||
# "noanim, floating:0"
|
||||
|
||||
"workspace 2 silent, class:^(firefox)$"
|
||||
"workspace 2 silent, class:^(floorp)$"
|
||||
"workspace 3 silent, class:^(Spotify)$"
|
||||
"workspace 4 silent, class:^(com.ayugram)$"
|
||||
"workspace 4 silent, class:^(vesktop)$"
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
{ config, lib, ... }: {
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = with config.lib.stylix.colors; {
|
||||
monitor = ", 1920x1080@60, auto, 1";
|
||||
env = [ "SLURP_ARGS, -b ${base00}CC -c ${base06}FF -B ${base0F}CC" ];
|
||||
exec-once = [
|
||||
"mako"
|
||||
"waybar"
|
||||
];
|
||||
exec-once = [ "mako" "waybar" ];
|
||||
|
||||
# APPERANCE
|
||||
general = {
|
||||
|
@ -115,11 +111,7 @@
|
|||
background_color = lib.mkForce "rgb(${base00})";
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
device {
|
||||
name = tpps/2-elan-trackpoint
|
||||
accel_profile = flat
|
||||
}
|
||||
'';
|
||||
extraConfig =
|
||||
" device {\n name = tpps/2-elan-trackpoint\n accel_profile = flat\n }\n";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1 @@
|
|||
{
|
||||
imports = [
|
||||
./mako
|
||||
./waybar
|
||||
./swaync
|
||||
];
|
||||
}
|
||||
{ imports = [ ./mako ./waybar ./swaync ]; }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ...}:
|
||||
{
|
||||
{ config, lib, ... }: {
|
||||
services.mako = with config.lib.stylix.colors; {
|
||||
enable = true;
|
||||
icons = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
imports = [ ./style.nix ];
|
||||
programs.waybar = with config.lib.stylix.colors; {
|
||||
enable = true;
|
||||
|
@ -20,9 +19,7 @@
|
|||
"custom/separatorL"
|
||||
"hyprland/language"
|
||||
];
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
];
|
||||
modules-center = [ "hyprland/workspaces" ];
|
||||
modules-right = [
|
||||
"tray"
|
||||
"custom/separatorR"
|
||||
|
@ -86,9 +83,7 @@
|
|||
bars = 12;
|
||||
source = "auto";
|
||||
format-icons = [ "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█" ];
|
||||
actions = {
|
||||
on-click-right = "mode";
|
||||
};
|
||||
actions = { on-click-right = "mode"; };
|
||||
};
|
||||
|
||||
# CENTER MODULES
|
||||
|
@ -107,9 +102,7 @@
|
|||
"9" = "九";
|
||||
"10" = "十";
|
||||
};
|
||||
persistent-workspaces = {
|
||||
"*" = [ 1 2 3 4 5 6 7 8 9 10 ];
|
||||
};
|
||||
persistent-workspaces = { "*" = [ 1 2 3 4 5 6 7 8 9 10 ]; };
|
||||
};
|
||||
|
||||
# RIGHT MODULES
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
programs.waybar.style = with config.lib.stylix.colors; ''
|
||||
/* BAR ITSELF */
|
||||
* {
|
||||
|
|
|
@ -1,6 +1 @@
|
|||
{
|
||||
imports = [
|
||||
./foot
|
||||
./kitty
|
||||
];
|
||||
}
|
||||
{ imports = [ ./foot ./kitty ]; }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
{ lib, ... }: {
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
server.enable = false;
|
||||
|
@ -10,12 +9,8 @@
|
|||
resize-by-cells = "yes";
|
||||
letter-spacing = 0;
|
||||
};
|
||||
cursor = {
|
||||
style = "block";
|
||||
};
|
||||
mouse = {
|
||||
hide-when-typing = "yes";
|
||||
};
|
||||
cursor = { style = "block"; };
|
||||
mouse = { hide-when-typing = "yes"; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.kitty.keybindings = {
|
||||
"ctrl+shift+c" = "copy_to_clipboard";
|
||||
"ctrl+shift+v" = "paste_from_clipboard";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
programs.kitty.settings = with config.lib.stylix.colors; {
|
||||
foreground = "#${base05}";
|
||||
background = "#${base00}";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
{ config, ... }: {
|
||||
imports = [ ./binds.nix ./colors.nix ];
|
||||
programs.kitty = with config.lib.stylix.colors; {
|
||||
enable = true;
|
||||
|
@ -33,7 +32,8 @@
|
|||
underline_hyperlinks = "always";
|
||||
enable_audio_bell = "no";
|
||||
disable_ligatures = "never";
|
||||
font_features = "+calt +liga +ss01 +ss02 +ss03 +ss04 +ss05 +ss06 +ss07 +ss08 +ss09";
|
||||
font_features =
|
||||
"+calt +liga +ss01 +ss02 +ss03 +ss04 +ss05 +ss06 +ss07 +ss08 +ss09";
|
||||
|
||||
# clipboard_control = "read-primary read-clipboard";
|
||||
|
||||
|
|
|
@ -1,7 +1 @@
|
|||
{
|
||||
imports = [
|
||||
./themes/stylix.nix
|
||||
./system
|
||||
./misc
|
||||
];
|
||||
}
|
||||
{ imports = [ ./themes/stylix.nix ./system ./misc ]; }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
{ inputs, ... }: {
|
||||
imports = [ inputs.auto-cpufreq.nixosModules.default ];
|
||||
programs.auto-cpufreq = { # CPU PERFMORMANCE
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
# SOMETHING FOR BATTERY
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
{ ... }: {
|
||||
# LOCALE AND TIME SETTINGS
|
||||
time.timeZone = "Asia/Chita";
|
||||
i18n = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
programs.nh = { # NIX HELPER
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
{ pkgs, lib, ... }: {
|
||||
nix = { # NIX SETTINGS
|
||||
package = pkgs.nix;
|
||||
settings = {
|
||||
|
@ -15,10 +14,7 @@
|
|||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
];
|
||||
trusted-users = [
|
||||
"megamozg"
|
||||
"@wheel"
|
||||
];
|
||||
trusted-users = [ "megamozg" "@wheel" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, inputs, lib, ... }:
|
||||
let
|
||||
hpkg = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
let hpkg = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
in {
|
||||
# OS PACKAGES
|
||||
nixpkgs = { hostPlatform = lib.mkDefault "x86_64-linux"; };
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
security = {
|
||||
sudo = { # FUCKING CRAP
|
||||
enable = true;
|
||||
|
@ -7,25 +6,17 @@
|
|||
doas = { # VERY TOP
|
||||
enable = true;
|
||||
wheelNeedsPassword = true;
|
||||
extraRules = [
|
||||
{
|
||||
extraRules = [{
|
||||
users = [ "megamozg" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
extraConfig = ''
|
||||
permit nopass megamozg as root cmd light
|
||||
permit nopass megamozg as root cmd tee
|
||||
'';
|
||||
}];
|
||||
extraConfig =
|
||||
" permit nopass megamozg as root cmd light\n permit nopass megamozg as root cmd tee\n";
|
||||
};
|
||||
pam = { # SOMTHING WITH FPRINT
|
||||
services = {
|
||||
swaylock.fprintAuth = true;
|
||||
};
|
||||
};
|
||||
polkit = {
|
||||
enable = true;
|
||||
services = { swaylock.fprintAuth = true; };
|
||||
};
|
||||
polkit = { enable = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
torrserver = pkgs.callPackage ./torrserver {};
|
||||
in
|
||||
{
|
||||
let torrserver = pkgs.callPackage ./torrserver { };
|
||||
in {
|
||||
systemd = {
|
||||
services = { # SERVICES SEETINGS
|
||||
torrserver = { # TORRSERVER
|
||||
|
@ -10,9 +8,7 @@ in
|
|||
after = [ "multi-user.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ torrserver ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.torrserver}";
|
||||
};
|
||||
serviceConfig = { ExecStart = "${pkgs.torrserver}"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,23 +2,20 @@
|
|||
let
|
||||
version = "134";
|
||||
hash = "sha256-WDygG9aGnD20nGxtG0t+T2KEwbJ+fZ0uRaCndirrsXI=";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
in stdenv.mkDerivation {
|
||||
name = "torrserver";
|
||||
dontUnpack = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/YouROK/TorrServer/releases/download/MatriX.${version}/TorrServer-linux-amd64";
|
||||
url =
|
||||
"https://github.com/YouROK/TorrServer/releases/download/MatriX.${version}/TorrServer-linux-amd64";
|
||||
sha256 = "${hash}";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src $out/bin/torrserver
|
||||
chmod +x $out/bin/torrserver
|
||||
'';
|
||||
installPhase =
|
||||
" mkdir -p $out/bin\n cp $src $out/bin/torrserver\n chmod +x $out/bin/torrserver\n";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Torrserver";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
users = {
|
||||
users = { # USERS
|
||||
megamozg = {
|
||||
|
|
|
@ -1,17 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
{ pkgs, lib, config, ... }: {
|
||||
systemd.services.zapret = { # ZAPRET FOR YOTUBE
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = with pkgs; [
|
||||
iptables
|
||||
nftables
|
||||
zapret
|
||||
ipset
|
||||
curl
|
||||
gawk
|
||||
];
|
||||
path = with pkgs; [ iptables nftables zapret ipset curl gawk ];
|
||||
serviceConfig = {
|
||||
Type = "forking";
|
||||
Restart = "no";
|
||||
|
@ -21,32 +13,8 @@
|
|||
GuessMainPID = "no";
|
||||
ExecStart = "${pkgs.zapret}/bin/zapret start";
|
||||
ExecStop = "${pkgs.zapret}/bin/zapret stop";
|
||||
EnvironmentFile = pkgs.writeText "zapret-environment" ''
|
||||
FWTYPE="iptables"
|
||||
SET_MAXELEM=522288
|
||||
IPSET_OPT="hashsize 262144 maxelem $SET_MAXELEM"
|
||||
AUTOHOSTLIST_RETRANS_THRESHOLD=3
|
||||
AUTOHOSTLIST_FAIL_THRESHOLD=3
|
||||
AUTOHOSTLIST_FAIL_TIME=60
|
||||
AUTOHOSTLIST_DEBUGLOG=0
|
||||
MDIG_THREADS=30
|
||||
GZIP_LISTS=1
|
||||
|
||||
MODE=nfqws
|
||||
MODE_HTTP=1
|
||||
MODE_HTTP_KEEPALIVE=0
|
||||
MODE_HTTPS=1
|
||||
MODE_QUIC=0
|
||||
MODE_FILTER=none
|
||||
|
||||
DESYNC_MARK=0x40000000
|
||||
DESYNC_MARK_POSTNAT=0x20000000
|
||||
NFQWS_OPT_DESYNC="--dpi-desync=fake,split2 --dpi-desync-ttl=3"
|
||||
TPWS_OPT="--hostspell=HOST --split-http-req=method --split-pos=3 --oob"
|
||||
FLOWOFFLOAD=donttouch
|
||||
INIT_APPLY_FW=1
|
||||
DISABLE_IPV6=0
|
||||
'';
|
||||
EnvironmentFile = pkgs.writeText "zapret-environment"
|
||||
" FWTYPE=\"iptables\"\n SET_MAXELEM=522288\n IPSET_OPT=\"hashsize 262144 maxelem $SET_MAXELEM\"\n AUTOHOSTLIST_RETRANS_THRESHOLD=3\n AUTOHOSTLIST_FAIL_THRESHOLD=3\n AUTOHOSTLIST_FAIL_TIME=60\n AUTOHOSTLIST_DEBUGLOG=0\n MDIG_THREADS=30\n GZIP_LISTS=1\n\n MODE=nfqws\n MODE_HTTP=1\n MODE_HTTP_KEEPALIVE=0\n MODE_HTTPS=1\n MODE_QUIC=0\n MODE_FILTER=none\n\n DESYNC_MARK=0x40000000\n DESYNC_MARK_POSTNAT=0x20000000\n NFQWS_OPT_DESYNC=\"--dpi-desync=fake,split2 --dpi-desync-ttl=3\"\n TPWS_OPT=\"--hostspell=HOST --split-http-req=method --split-pos=3 --oob\"\n FLOWOFFLOAD=donttouch\n INIT_APPLY_FW=1\n DISABLE_IPV6=0\n";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
# BOOT PARAMETERS
|
||||
boot = { # ITSELF LOL
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
|
@ -49,7 +48,8 @@
|
|||
|
||||
plymouth = { # PLYMOUTH WITH NIXOS LOGO
|
||||
enable = true;
|
||||
logo = "${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
|
||||
logo =
|
||||
"${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
|
||||
};
|
||||
|
||||
tmp.cleanOnBoot = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
{ modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
fileSystems = {
|
||||
"/" = { # ROOT
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, config, lib, inputs, ... }:
|
||||
{
|
||||
{ pkgs, inputs, ... }: {
|
||||
imports = [ "${inputs.nixos-hardware}/lenovo/thinkpad/t14/amd/gen1" ];
|
||||
hardware = {
|
||||
bluetooth = { # BT
|
||||
|
@ -9,15 +8,14 @@
|
|||
graphics = { # GPU
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
extraPackages = with pkgs;
|
||||
[
|
||||
amdvlk
|
||||
# rocmPackages.clr.icd
|
||||
# vaapiVdpau
|
||||
# libvdpau-va-gl
|
||||
];
|
||||
extraPackages32 = with pkgs; [
|
||||
driversi686Linux.amdvlk
|
||||
];
|
||||
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
||||
};
|
||||
system76.enableAll = true;
|
||||
firmware = [ pkgs.linux-firmware ];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
{ lib, ... }: {
|
||||
# NETWORKING
|
||||
networking = {
|
||||
hostName = "wysvort";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
# SERVICES ANY PROGRAM
|
||||
services = {
|
||||
getty.autologinUser = "megamozg";
|
||||
|
@ -58,9 +57,7 @@
|
|||
USB_AUTOSUSPEND = 0;
|
||||
};
|
||||
};
|
||||
resolved = {
|
||||
enable = true;
|
||||
};
|
||||
resolved = { enable = true; };
|
||||
|
||||
dbus.implementation = "broker";
|
||||
upower.enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{ ... }: {
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = { # SOUND NEW GEN
|
||||
enable = true;
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
{ inputs, ... }: {
|
||||
# SYSTEM COLORSCHEME (see targets)
|
||||
imports = [
|
||||
inputs.stylix.nixosModules.stylix
|
||||
./paradise.nix
|
||||
];
|
||||
imports = [ inputs.stylix.nixosModules.stylix ./paradise.nix ];
|
||||
stylix = { # COLORIZE !!!
|
||||
enable = true;
|
||||
autoEnable = false;
|
||||
|
|
Loading…
Reference in a new issue