fmt
This commit is contained in:
@@ -4,10 +4,12 @@
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.aerc;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.aerc.enable = mkEnableOption "Enables aerc";
|
||||
};
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.ags;
|
||||
in {
|
||||
imports = [inputs.ags.homeManagerModules.default];
|
||||
in
|
||||
{
|
||||
imports = [ inputs.ags.homeManagerModules.default ];
|
||||
options = {
|
||||
home.programs.ags.enable = mkEnableOption "Enables ags";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.alacritty;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.alacritty.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.anyrun;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.anyrun.homeManagerModules.default
|
||||
];
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.bash;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.bash.enable = mkEnableOption "Enables bash";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.chromium;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.chromium.enable = mkEnableOption "Enables chromium";
|
||||
};
|
||||
|
||||
@@ -3,8 +3,14 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkOption mkEnableOption types;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkIf
|
||||
mkOption
|
||||
mkEnableOption
|
||||
types
|
||||
;
|
||||
# Workaround for https://github.com/GooseMod/OpenAsar/issues/202
|
||||
# Needlessly complicated, but it's dynamic! :D
|
||||
variantMapping = {
|
||||
@@ -18,24 +24,32 @@
|
||||
};
|
||||
canary = {
|
||||
dir = "discordcanary";
|
||||
package = pkgs.discord-canary.override {withOpenASAR = true;};
|
||||
package = pkgs.discord-canary.override { withOpenASAR = true; };
|
||||
};
|
||||
vesktop = {
|
||||
dir = "vesktop";
|
||||
package = pkgs.vesktop;
|
||||
};
|
||||
};
|
||||
getVariantConfig = variant:
|
||||
if builtins.hasAttr variant variantMapping
|
||||
then variantMapping.${variant}
|
||||
else throw "Unknown package variant: ${variant}";
|
||||
getVariantConfig =
|
||||
variant:
|
||||
if builtins.hasAttr variant variantMapping then
|
||||
variantMapping.${variant}
|
||||
else
|
||||
throw "Unknown package variant: ${variant}";
|
||||
cfg = config.home.programs.discord;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.discord = {
|
||||
enable = mkEnableOption "Enables discord";
|
||||
variant = mkOption {
|
||||
type = types.enum ["stable" "ptb" "canary" "vesktop"];
|
||||
type = types.enum [
|
||||
"stable"
|
||||
"ptb"
|
||||
"canary"
|
||||
"vesktop"
|
||||
];
|
||||
default = "stable";
|
||||
description = "Preferred package version to use";
|
||||
};
|
||||
@@ -44,13 +58,11 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
home = {
|
||||
sessionVariables.DISCORD_USER_DATA_DIR = "$HOME/.config/${(getVariantConfig cfg.variant).dir}";
|
||||
packages = [(getVariantConfig cfg.variant).package];
|
||||
packages = [ (getVariantConfig cfg.variant).package ];
|
||||
};
|
||||
xdg.configFile = mkIf (cfg.variant == "vesktop") {
|
||||
"vesktop/themes/base16.css".text =
|
||||
/*
|
||||
css
|
||||
*/
|
||||
# css
|
||||
''
|
||||
/**
|
||||
* @name Material Gruvbox
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.eza;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.eza.enable = mkEnableOption "Enables eza";
|
||||
};
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.firefox;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
# inputs.nur.hmModules.nur
|
||||
];
|
||||
@@ -24,9 +26,12 @@ in {
|
||||
force = true;
|
||||
default = "ddg";
|
||||
privateDefault = "ddg";
|
||||
order = ["ddg" "google"];
|
||||
order = [
|
||||
"ddg"
|
||||
"google"
|
||||
];
|
||||
};
|
||||
bookmarks = {};
|
||||
bookmarks = { };
|
||||
# extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||
# ublock-origin
|
||||
# sponsorblock
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (pkgs) eza bat;
|
||||
cfg = config.home.programs.fish;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.fish.enable = mkEnableOption "Enables fish home configuration";
|
||||
};
|
||||
@@ -59,17 +61,13 @@ in {
|
||||
up-or-search = lib.readFile ./up-or-search.fish;
|
||||
# Check stuff in PATH
|
||||
nix-inspect =
|
||||
/*
|
||||
fish
|
||||
*/
|
||||
# fish
|
||||
''
|
||||
set -s PATH | grep "PATH\[.*/nix/store" | cut -d '|' -f2 | grep -v -e "-man" -e "-terminfo" | perl -pe 's:^/nix/store/\w{32}-([^/]*)/bin$:\1:' | sort | uniq
|
||||
'';
|
||||
};
|
||||
interactiveShellInit =
|
||||
/*
|
||||
fish
|
||||
*/
|
||||
# fish
|
||||
''
|
||||
# Open command buffer in vim when alt+e is pressed
|
||||
bind \ee edit_command_buffer
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.floorp;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.floorp.enable = mkEnableOption "Enables floorp browser";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.foot;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.foot.enable = mkEnableOption "Enables foot programs";
|
||||
};
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption mkMerge;
|
||||
cfg = config.home.programs.fuzzel;
|
||||
host = osConfig.networking.hostName;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.fuzzel.enable = mkEnableOption "Enables fuzzel";
|
||||
};
|
||||
|
||||
@@ -4,11 +4,18 @@
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkMerge getExe;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkIf
|
||||
mkEnableOption
|
||||
mkMerge
|
||||
getExe
|
||||
;
|
||||
cfg = config.home.programs.ghostty;
|
||||
host = osConfig.networking.hostName;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.ghostty.enable = mkEnableOption "Enables ghostty";
|
||||
};
|
||||
|
||||
@@ -4,15 +4,17 @@
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.git;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.git.enable = mkEnableOption "Enables git";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [pkgs.gh];
|
||||
home.packages = [ pkgs.gh ];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = osConfig.settings.accounts.username;
|
||||
@@ -31,7 +33,8 @@ in {
|
||||
};
|
||||
gpg = {
|
||||
# format = lib.mkDefault "ssh";
|
||||
ssh.allowedSignersFile = config.home.homeDirectory + "/" + config.xdg.configFile."git/allowed_signers".target;
|
||||
ssh.allowedSignersFile =
|
||||
config.home.homeDirectory + "/" + config.xdg.configFile."git/allowed_signers".target;
|
||||
};
|
||||
commit = {
|
||||
verbose = true;
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.helix;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./languages.nix
|
||||
./gruvbox.nix
|
||||
@@ -46,7 +48,12 @@ in {
|
||||
display-messages = true;
|
||||
display-inlay-hints = true;
|
||||
};
|
||||
gutters = ["diagnostics" "line-numbers" "spacer" "diff"];
|
||||
gutters = [
|
||||
"diagnostics"
|
||||
"line-numbers"
|
||||
"spacer"
|
||||
"diff"
|
||||
];
|
||||
statusline = {
|
||||
separator = "/";
|
||||
left = [
|
||||
@@ -57,7 +64,7 @@ in {
|
||||
"spinner"
|
||||
"diagnostics"
|
||||
];
|
||||
center = ["file-name"];
|
||||
center = [ "file-name" ];
|
||||
right = [
|
||||
"file-encoding"
|
||||
"file-line-ending"
|
||||
@@ -78,62 +85,103 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
keys = let
|
||||
spaceMode = {
|
||||
space = "file_picker";
|
||||
n = "global_search";
|
||||
f = ":format";
|
||||
c = "toggle_comments";
|
||||
t = {
|
||||
d = "goto_type_definition";
|
||||
i = "goto_implementation";
|
||||
r = "goto_reference";
|
||||
t = "goto_definition";
|
||||
w = "trim_selections";
|
||||
keys =
|
||||
let
|
||||
spaceMode = {
|
||||
space = "file_picker";
|
||||
n = "global_search";
|
||||
f = ":format";
|
||||
c = "toggle_comments";
|
||||
t = {
|
||||
d = "goto_type_definition";
|
||||
i = "goto_implementation";
|
||||
r = "goto_reference";
|
||||
t = "goto_definition";
|
||||
w = "trim_selections";
|
||||
};
|
||||
x = ":buffer-close";
|
||||
w = ":w";
|
||||
q = ":q";
|
||||
y = "yank";
|
||||
p = "paste_after";
|
||||
P = "paste_before";
|
||||
R = "replace_with_yanked";
|
||||
};
|
||||
x = ":buffer-close";
|
||||
w = ":w";
|
||||
q = ":q";
|
||||
y = "yank";
|
||||
p = "paste_after";
|
||||
P = "paste_before";
|
||||
R = "replace_with_yanked";
|
||||
};
|
||||
in {
|
||||
normal = {
|
||||
d = {
|
||||
d = ["extend_to_line_bounds" "yank_main_selection_to_clipboard" "delete_selection"];
|
||||
s = ["surround_delete"];
|
||||
in
|
||||
{
|
||||
normal = {
|
||||
d = {
|
||||
d = [
|
||||
"extend_to_line_bounds"
|
||||
"yank_main_selection_to_clipboard"
|
||||
"delete_selection"
|
||||
];
|
||||
s = [ "surround_delete" ];
|
||||
};
|
||||
x = "delete_selection";
|
||||
y = {
|
||||
y = [
|
||||
"extend_to_line_bounds"
|
||||
"yank_main_selection_to_clipboard"
|
||||
"normal_mode"
|
||||
"collapse_selection"
|
||||
];
|
||||
d = ":yank-diagnostic";
|
||||
};
|
||||
Y = [
|
||||
"extend_to_line_end"
|
||||
"yank_main_selection_to_clipboard"
|
||||
"collapse_selection"
|
||||
];
|
||||
P = [
|
||||
"paste_clipboard_before"
|
||||
"collapse_selection"
|
||||
];
|
||||
p = [
|
||||
"paste_clipboard_after"
|
||||
"collapse_selection"
|
||||
];
|
||||
C-a = "select_all";
|
||||
del = "delete_selection";
|
||||
space = spaceMode;
|
||||
};
|
||||
x = "delete_selection";
|
||||
y = {
|
||||
y = ["extend_to_line_bounds" "yank_main_selection_to_clipboard" "normal_mode" "collapse_selection"];
|
||||
d = ":yank-diagnostic";
|
||||
insert = {
|
||||
C-v = "paste_clipboard_after";
|
||||
C-c = "yank_to_clipboard";
|
||||
C-x = "completion";
|
||||
del = "delete_selection";
|
||||
esc = [
|
||||
"collapse_selection"
|
||||
"normal_mode"
|
||||
];
|
||||
};
|
||||
select = {
|
||||
space = spaceMode;
|
||||
d = [
|
||||
"yank_main_selection_to_clipboard"
|
||||
"delete_selection"
|
||||
];
|
||||
x = [
|
||||
"yank_main_selection_to_clipboard"
|
||||
"delete_selection"
|
||||
];
|
||||
y = [
|
||||
"yank_main_selection_to_clipboard"
|
||||
"normal_mode"
|
||||
"flip_selections"
|
||||
"collapse_selection"
|
||||
];
|
||||
Y = [
|
||||
"extend_to_line_bounds"
|
||||
"yank_main_selection_to_clipboard"
|
||||
"goto_line_start"
|
||||
"collapse_selection"
|
||||
"normal_mode"
|
||||
];
|
||||
p = [ "replace_selections_with_clipboard" ];
|
||||
P = [ "paste_clipboard_before" ];
|
||||
};
|
||||
Y = ["extend_to_line_end" "yank_main_selection_to_clipboard" "collapse_selection"];
|
||||
P = ["paste_clipboard_before" "collapse_selection"];
|
||||
p = ["paste_clipboard_after" "collapse_selection"];
|
||||
C-a = "select_all";
|
||||
del = "delete_selection";
|
||||
space = spaceMode;
|
||||
};
|
||||
insert = {
|
||||
C-v = "paste_clipboard_after";
|
||||
C-c = "yank_to_clipboard";
|
||||
C-x = "completion";
|
||||
del = "delete_selection";
|
||||
esc = ["collapse_selection" "normal_mode"];
|
||||
};
|
||||
select = {
|
||||
space = spaceMode;
|
||||
d = ["yank_main_selection_to_clipboard" "delete_selection"];
|
||||
x = ["yank_main_selection_to_clipboard" "delete_selection"];
|
||||
y = ["yank_main_selection_to_clipboard" "normal_mode" "flip_selections" "collapse_selection"];
|
||||
Y = ["extend_to_line_bounds" "yank_main_selection_to_clipboard" "goto_line_start" "collapse_selection" "normal_mode"];
|
||||
p = ["replace_selections_with_clipboard"];
|
||||
P = ["paste_clipboard_before"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,201 +1,225 @@
|
||||
{
|
||||
programs.helix.themes = {
|
||||
gruvbox_custom = let
|
||||
bg0 = "#32302f";
|
||||
bg1 = "#3c3836";
|
||||
bg2 = "#3c3836";
|
||||
bg3 = "#504945";
|
||||
bg4 = "#504945";
|
||||
fg0 = "#d4be98";
|
||||
red = "#ea6962";
|
||||
orange = "#e78a4e";
|
||||
yellow = "#d8a657";
|
||||
bg_visual_yellow = "#574833";
|
||||
green = "#a9b665";
|
||||
aqua = "#89b482";
|
||||
blue = "#7daea3";
|
||||
purple = "#d3869b";
|
||||
grey0 = "#7c6f64";
|
||||
grey2 = "#a89984";
|
||||
in {
|
||||
"type" = yellow;
|
||||
"constant" = purple;
|
||||
"constant.numeric" = purple;
|
||||
"constant.character.escape" = orange;
|
||||
"string" = green;
|
||||
"string.regexp" = blue;
|
||||
"comment" = grey0;
|
||||
"variable" = fg0;
|
||||
"variable.builtin" = blue;
|
||||
"variable.parameter" = fg0;
|
||||
"variable.other.member" = fg0;
|
||||
"label" = aqua;
|
||||
"punctuation" = grey2;
|
||||
"punctuation.delimiter" = grey2;
|
||||
"punctuation.bracket" = fg0;
|
||||
"keyword" = red;
|
||||
"keyword.directive" = aqua;
|
||||
"operator" = orange;
|
||||
"function" = green;
|
||||
"function.builtin" = blue;
|
||||
"function.macro" = aqua;
|
||||
"tag" = yellow;
|
||||
"namespace" = aqua;
|
||||
"attribute" = aqua;
|
||||
"constructor" = yellow;
|
||||
"module" = blue;
|
||||
"special" = orange;
|
||||
"markup.heading.marker" = grey2;
|
||||
"markup.heading.1" = {
|
||||
fg = red;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"markup.heading.2" = {
|
||||
fg = orange;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"markup.heading.3" = {
|
||||
fg = yellow;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"markup.heading.4" = {
|
||||
fg = green;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"markup.heading.5" = {
|
||||
fg = blue;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"markup.heading.6" = {
|
||||
fg = fg0;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"markup.list" = red;
|
||||
"markup.bold" = {modifiers = ["bold"];};
|
||||
"markup.italic" = {modifiers = ["italic"];};
|
||||
"markup.link.url" = {
|
||||
fg = blue;
|
||||
modifiers = ["underlined"];
|
||||
};
|
||||
"markup.link.text" = purple;
|
||||
"markup.quote" = grey2;
|
||||
"markup.raw" = green;
|
||||
gruvbox_custom =
|
||||
let
|
||||
bg0 = "#32302f";
|
||||
bg1 = "#3c3836";
|
||||
bg2 = "#3c3836";
|
||||
bg3 = "#504945";
|
||||
bg4 = "#504945";
|
||||
fg0 = "#d4be98";
|
||||
red = "#ea6962";
|
||||
orange = "#e78a4e";
|
||||
yellow = "#d8a657";
|
||||
bg_visual_yellow = "#574833";
|
||||
green = "#a9b665";
|
||||
aqua = "#89b482";
|
||||
blue = "#7daea3";
|
||||
purple = "#d3869b";
|
||||
grey0 = "#7c6f64";
|
||||
grey2 = "#a89984";
|
||||
in
|
||||
{
|
||||
"type" = yellow;
|
||||
"constant" = purple;
|
||||
"constant.numeric" = purple;
|
||||
"constant.character.escape" = orange;
|
||||
"string" = green;
|
||||
"string.regexp" = blue;
|
||||
"comment" = grey0;
|
||||
"variable" = fg0;
|
||||
"variable.builtin" = blue;
|
||||
"variable.parameter" = fg0;
|
||||
"variable.other.member" = fg0;
|
||||
"label" = aqua;
|
||||
"punctuation" = grey2;
|
||||
"punctuation.delimiter" = grey2;
|
||||
"punctuation.bracket" = fg0;
|
||||
"keyword" = red;
|
||||
"keyword.directive" = aqua;
|
||||
"operator" = orange;
|
||||
"function" = green;
|
||||
"function.builtin" = blue;
|
||||
"function.macro" = aqua;
|
||||
"tag" = yellow;
|
||||
"namespace" = aqua;
|
||||
"attribute" = aqua;
|
||||
"constructor" = yellow;
|
||||
"module" = blue;
|
||||
"special" = orange;
|
||||
"markup.heading.marker" = grey2;
|
||||
"markup.heading.1" = {
|
||||
fg = red;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.heading.2" = {
|
||||
fg = orange;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.heading.3" = {
|
||||
fg = yellow;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.heading.4" = {
|
||||
fg = green;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.heading.5" = {
|
||||
fg = blue;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.heading.6" = {
|
||||
fg = fg0;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.list" = red;
|
||||
"markup.bold" = {
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"markup.italic" = {
|
||||
modifiers = [ "italic" ];
|
||||
};
|
||||
"markup.link.url" = {
|
||||
fg = blue;
|
||||
modifiers = [ "underlined" ];
|
||||
};
|
||||
"markup.link.text" = purple;
|
||||
"markup.quote" = grey2;
|
||||
"markup.raw" = green;
|
||||
|
||||
"diff.plus" = green;
|
||||
"diff.delta" = orange;
|
||||
"diff.minus" = red;
|
||||
"diff.plus" = green;
|
||||
"diff.delta" = orange;
|
||||
"diff.minus" = red;
|
||||
|
||||
"ui.background" = {bg = bg0;};
|
||||
"ui.background.separator" = grey0;
|
||||
"ui.cursor" = {
|
||||
fg = bg0;
|
||||
bg = fg0;
|
||||
};
|
||||
"ui.cursor.match" = {
|
||||
fg = orange;
|
||||
bg = bg_visual_yellow;
|
||||
};
|
||||
"ui.cursor.insert" = {
|
||||
fg = bg0;
|
||||
bg = grey2;
|
||||
};
|
||||
"ui.cursor.select" = {
|
||||
fg = bg0;
|
||||
bg = blue;
|
||||
};
|
||||
"ui.cursorline.primary" = {bg = bg1;};
|
||||
"ui.cursorline.secondary" = {bg = bg1;};
|
||||
"ui.selection" = {bg = bg3;};
|
||||
"ui.linenr" = grey0;
|
||||
"ui.linenr.selected" = fg0;
|
||||
"ui.statusline" = {
|
||||
fg = fg0;
|
||||
bg = bg3;
|
||||
};
|
||||
"ui.statusline.inactive" = {
|
||||
fg = grey0;
|
||||
bg = bg1;
|
||||
};
|
||||
"ui.statusline.normal" = {
|
||||
fg = bg0;
|
||||
bg = fg0;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"ui.statusline.insert" = {
|
||||
fg = bg0;
|
||||
bg = yellow;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"ui.statusline.select" = {
|
||||
fg = bg0;
|
||||
bg = blue;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"ui.bufferline" = {
|
||||
fg = grey0;
|
||||
bg = bg1;
|
||||
};
|
||||
"ui.bufferline.active" = {
|
||||
fg = fg0;
|
||||
bg = bg3;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"ui.popup" = {
|
||||
fg = grey2;
|
||||
bg = bg2;
|
||||
};
|
||||
"ui.window" = {
|
||||
fg = grey0;
|
||||
bg = bg0;
|
||||
};
|
||||
"ui.help" = {
|
||||
fg = fg0;
|
||||
bg = bg2;
|
||||
};
|
||||
"ui.text" = fg0;
|
||||
"ui.text.focus" = fg0;
|
||||
"ui.menu" = {
|
||||
fg = fg0;
|
||||
bg = bg3;
|
||||
};
|
||||
"ui.menu.selected" = {
|
||||
fg = bg0;
|
||||
bg = blue;
|
||||
modifiers = ["bold"];
|
||||
};
|
||||
"ui.virtual.whitespace" = {fg = bg4;};
|
||||
"ui.virtual.indent-guide" = {fg = bg4;};
|
||||
"ui.virtual.ruler" = {bg = bg3;};
|
||||
"ui.background" = {
|
||||
bg = bg0;
|
||||
};
|
||||
"ui.background.separator" = grey0;
|
||||
"ui.cursor" = {
|
||||
fg = bg0;
|
||||
bg = fg0;
|
||||
};
|
||||
"ui.cursor.match" = {
|
||||
fg = orange;
|
||||
bg = bg_visual_yellow;
|
||||
};
|
||||
"ui.cursor.insert" = {
|
||||
fg = bg0;
|
||||
bg = grey2;
|
||||
};
|
||||
"ui.cursor.select" = {
|
||||
fg = bg0;
|
||||
bg = blue;
|
||||
};
|
||||
"ui.cursorline.primary" = {
|
||||
bg = bg1;
|
||||
};
|
||||
"ui.cursorline.secondary" = {
|
||||
bg = bg1;
|
||||
};
|
||||
"ui.selection" = {
|
||||
bg = bg3;
|
||||
};
|
||||
"ui.linenr" = grey0;
|
||||
"ui.linenr.selected" = fg0;
|
||||
"ui.statusline" = {
|
||||
fg = fg0;
|
||||
bg = bg3;
|
||||
};
|
||||
"ui.statusline.inactive" = {
|
||||
fg = grey0;
|
||||
bg = bg1;
|
||||
};
|
||||
"ui.statusline.normal" = {
|
||||
fg = bg0;
|
||||
bg = fg0;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.statusline.insert" = {
|
||||
fg = bg0;
|
||||
bg = yellow;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.statusline.select" = {
|
||||
fg = bg0;
|
||||
bg = blue;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.bufferline" = {
|
||||
fg = grey0;
|
||||
bg = bg1;
|
||||
};
|
||||
"ui.bufferline.active" = {
|
||||
fg = fg0;
|
||||
bg = bg3;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.popup" = {
|
||||
fg = grey2;
|
||||
bg = bg2;
|
||||
};
|
||||
"ui.window" = {
|
||||
fg = grey0;
|
||||
bg = bg0;
|
||||
};
|
||||
"ui.help" = {
|
||||
fg = fg0;
|
||||
bg = bg2;
|
||||
};
|
||||
"ui.text" = fg0;
|
||||
"ui.text.focus" = fg0;
|
||||
"ui.menu" = {
|
||||
fg = fg0;
|
||||
bg = bg3;
|
||||
};
|
||||
"ui.menu.selected" = {
|
||||
fg = bg0;
|
||||
bg = blue;
|
||||
modifiers = [ "bold" ];
|
||||
};
|
||||
"ui.virtual.whitespace" = {
|
||||
fg = bg4;
|
||||
};
|
||||
"ui.virtual.indent-guide" = {
|
||||
fg = bg4;
|
||||
};
|
||||
"ui.virtual.ruler" = {
|
||||
bg = bg3;
|
||||
};
|
||||
|
||||
"hint" = blue;
|
||||
"info" = aqua;
|
||||
"warning" = yellow;
|
||||
"error" = red;
|
||||
"diagnostic" = {underline = {style = "curl";};};
|
||||
"diagnostic.hint" = {
|
||||
underline = {
|
||||
color = blue;
|
||||
style = "dotted";
|
||||
"hint" = blue;
|
||||
"info" = aqua;
|
||||
"warning" = yellow;
|
||||
"error" = red;
|
||||
"diagnostic" = {
|
||||
underline = {
|
||||
style = "curl";
|
||||
};
|
||||
};
|
||||
"diagnostic.hint" = {
|
||||
underline = {
|
||||
color = blue;
|
||||
style = "dotted";
|
||||
};
|
||||
};
|
||||
"diagnostic.info" = {
|
||||
underline = {
|
||||
color = aqua;
|
||||
style = "dotted";
|
||||
};
|
||||
};
|
||||
"diagnostic.warning" = {
|
||||
underline = {
|
||||
color = yellow;
|
||||
style = "curl";
|
||||
};
|
||||
};
|
||||
"diagnostic.error" = {
|
||||
underline = {
|
||||
color = red;
|
||||
style = "curl";
|
||||
};
|
||||
};
|
||||
};
|
||||
"diagnostic.info" = {
|
||||
underline = {
|
||||
color = aqua;
|
||||
style = "dotted";
|
||||
};
|
||||
};
|
||||
"diagnostic.warning" = {
|
||||
underline = {
|
||||
color = yellow;
|
||||
style = "curl";
|
||||
};
|
||||
};
|
||||
"diagnostic.error" = {
|
||||
underline = {
|
||||
color = red;
|
||||
style = "curl";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,31 +2,48 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
programs.helix.languages = {
|
||||
language = let
|
||||
deno = lang: {
|
||||
command = lib.getExe pkgs.deno;
|
||||
args = ["fmt" "-" "--ext" lang];
|
||||
};
|
||||
language =
|
||||
let
|
||||
deno = lang: {
|
||||
command = lib.getExe pkgs.deno;
|
||||
args = [
|
||||
"fmt"
|
||||
"-"
|
||||
"--ext"
|
||||
lang
|
||||
];
|
||||
};
|
||||
|
||||
prettier = lang: {
|
||||
command = "prettier";
|
||||
args = ["--parser" lang];
|
||||
};
|
||||
prettierLangs = map (e: {
|
||||
name = e;
|
||||
formatter = prettier e;
|
||||
});
|
||||
langs = ["css" "scss" "html"];
|
||||
in
|
||||
prettier = lang: {
|
||||
command = "prettier";
|
||||
args = [
|
||||
"--parser"
|
||||
lang
|
||||
];
|
||||
};
|
||||
prettierLangs = map (e: {
|
||||
name = e;
|
||||
formatter = prettier e;
|
||||
});
|
||||
langs = [
|
||||
"css"
|
||||
"scss"
|
||||
"html"
|
||||
];
|
||||
in
|
||||
[
|
||||
{
|
||||
name = "bash";
|
||||
auto-format = true;
|
||||
formatter = {
|
||||
command = lib.getExe pkgs.shfmt;
|
||||
args = ["-i" "2"];
|
||||
args = [
|
||||
"-i"
|
||||
"2"
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
@@ -36,7 +53,17 @@
|
||||
{
|
||||
name = "clojure";
|
||||
injection-regex = "(clojure|clj|edn|boot|yuck)";
|
||||
file-types = ["clj" "cljs" "cljc" "clje" "cljr" "cljx" "edn" "boot" "yuck"];
|
||||
file-types = [
|
||||
"clj"
|
||||
"cljs"
|
||||
"cljc"
|
||||
"clje"
|
||||
"cljr"
|
||||
"cljx"
|
||||
"edn"
|
||||
"boot"
|
||||
"yuck"
|
||||
];
|
||||
}
|
||||
# {
|
||||
# name = "cmake";
|
||||
@@ -50,7 +77,7 @@
|
||||
{
|
||||
name = "lua";
|
||||
auto-format = true;
|
||||
language-servers = ["lua-language-server"];
|
||||
language-servers = [ "lua-language-server" ];
|
||||
formatter = {
|
||||
command = lib.getExe pkgs.stylua;
|
||||
};
|
||||
@@ -66,7 +93,7 @@
|
||||
}
|
||||
{
|
||||
name = "common-lisp";
|
||||
file-types = ["kbd"];
|
||||
file-types = [ "kbd" ];
|
||||
auto-format = true;
|
||||
}
|
||||
{
|
||||
@@ -77,10 +104,10 @@
|
||||
{
|
||||
name = "nix";
|
||||
auto-format = true;
|
||||
language-servers = ["nil"];
|
||||
language-servers = [ "nil" ];
|
||||
formatter = {
|
||||
command = "${pkgs.nixfmt}/bin/nixfmt";
|
||||
args = ["-q"];
|
||||
args = [ "-q" ];
|
||||
};
|
||||
}
|
||||
# {
|
||||
@@ -94,7 +121,7 @@
|
||||
{
|
||||
name = "qml";
|
||||
auto-format = true;
|
||||
language-servers = ["qmlls"];
|
||||
language-servers = [ "qmlls" ];
|
||||
}
|
||||
# {
|
||||
# name = "typescript";
|
||||
@@ -112,13 +139,13 @@
|
||||
{
|
||||
name = "css";
|
||||
auto-format = true;
|
||||
language-servers = ["vscode-css-language-server"];
|
||||
language-servers = [ "vscode-css-language-server" ];
|
||||
}
|
||||
{
|
||||
name = "rust";
|
||||
auto-format = true;
|
||||
file-types = ["rs"];
|
||||
language-servers = ["rust-analyzer"];
|
||||
file-types = [ "rs" ];
|
||||
language-servers = [ "rust-analyzer" ];
|
||||
formatter = {
|
||||
command = lib.getExe pkgs.rustfmt;
|
||||
};
|
||||
@@ -129,17 +156,17 @@
|
||||
language-server = {
|
||||
phpactor = {
|
||||
command = lib.getExe pkgs.phpactor;
|
||||
args = ["language-server"];
|
||||
args = [ "language-server" ];
|
||||
};
|
||||
|
||||
bash-language-server = {
|
||||
command = lib.getExe pkgs.bash-language-server;
|
||||
args = ["start"];
|
||||
args = [ "start" ];
|
||||
};
|
||||
|
||||
clangd = {
|
||||
command = "${pkgs.clang-tools}/bin/clangd";
|
||||
clangd.fallbackFlags = ["-std=c++2b"];
|
||||
clangd.fallbackFlags = [ "-std=c++2b" ];
|
||||
};
|
||||
|
||||
# cmake-language-server = {
|
||||
@@ -152,7 +179,7 @@
|
||||
|
||||
deno-lsp = {
|
||||
command = lib.getExe pkgs.deno;
|
||||
args = ["lsp"];
|
||||
args = [ "lsp" ];
|
||||
environment.NO_COLOR = "1";
|
||||
config.deno = {
|
||||
enable = true;
|
||||
@@ -160,7 +187,9 @@
|
||||
unstable = true;
|
||||
suggest = {
|
||||
completeFunctionCalls = false;
|
||||
imports = {hosts."https://deno.land" = true;};
|
||||
imports = {
|
||||
hosts."https://deno.land" = true;
|
||||
};
|
||||
};
|
||||
inlayHints = {
|
||||
enumMemberValues.enabled = true;
|
||||
@@ -180,7 +209,7 @@
|
||||
|
||||
qmlls = {
|
||||
command = "${pkgs.qt6.qtdeclarative}/bin/qmlls";
|
||||
args = ["-E"];
|
||||
args = [ "-E" ];
|
||||
};
|
||||
|
||||
# pyright = {
|
||||
@@ -197,36 +226,38 @@
|
||||
|
||||
typescript-language-server = {
|
||||
command = lib.getExe pkgs.nodePackages.typescript-language-server;
|
||||
args = ["--stdio"];
|
||||
config = let
|
||||
inlayHints = {
|
||||
includeInlayEnumMemberValueHints = true;
|
||||
includeInlayFunctionLikeReturnTypeHints = true;
|
||||
includeInlayFunctionParameterTypeHints = true;
|
||||
includeInlayParameterNameHints = "all";
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = true;
|
||||
includeInlayPropertyDeclarationTypeHints = true;
|
||||
includeInlayVariableTypeHints = true;
|
||||
};
|
||||
in {
|
||||
typescript-language-server.source = {
|
||||
addMissingImports.ts = true;
|
||||
fixAll.ts = true;
|
||||
organizeImports.ts = true;
|
||||
removeUnusedImports.ts = true;
|
||||
sortImports.ts = true;
|
||||
};
|
||||
args = [ "--stdio" ];
|
||||
config =
|
||||
let
|
||||
inlayHints = {
|
||||
includeInlayEnumMemberValueHints = true;
|
||||
includeInlayFunctionLikeReturnTypeHints = true;
|
||||
includeInlayFunctionParameterTypeHints = true;
|
||||
includeInlayParameterNameHints = "all";
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = true;
|
||||
includeInlayPropertyDeclarationTypeHints = true;
|
||||
includeInlayVariableTypeHints = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
typescript-language-server.source = {
|
||||
addMissingImports.ts = true;
|
||||
fixAll.ts = true;
|
||||
organizeImports.ts = true;
|
||||
removeUnusedImports.ts = true;
|
||||
sortImports.ts = true;
|
||||
};
|
||||
|
||||
typescript = {inherit inlayHints;};
|
||||
javascript = {inherit inlayHints;};
|
||||
typescript = { inherit inlayHints; };
|
||||
javascript = { inherit inlayHints; };
|
||||
|
||||
hostInfo = "helix";
|
||||
};
|
||||
hostInfo = "helix";
|
||||
};
|
||||
};
|
||||
|
||||
vscode-css-language-server = {
|
||||
command = "${pkgs.vscode-langservers-extracted}/bin/vscode-css-language-server";
|
||||
args = ["--stdio"];
|
||||
args = [ "--stdio" ];
|
||||
config = {
|
||||
provideFormatter = true;
|
||||
css.validate.enable = true;
|
||||
|
||||
@@ -5,13 +5,15 @@
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.hyprlock;
|
||||
|
||||
hyprlockFlake = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
|
||||
# hyprlockPkg = pkgs.hyprlock;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.hyprlock.enable = mkEnableOption "Enables hyprlock";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.jujutsu;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.jujutsu.enable = mkEnableOption "Enables jujutsu";
|
||||
};
|
||||
@@ -25,13 +27,15 @@ in {
|
||||
];
|
||||
pager = "less -FRX";
|
||||
};
|
||||
signing = let
|
||||
gitCfg = config.programs.git.extraConfig;
|
||||
in {
|
||||
backend = "ssh";
|
||||
sign-all = true;
|
||||
key = gitCfg.signing.key;
|
||||
};
|
||||
signing =
|
||||
let
|
||||
gitCfg = config.programs.git.extraConfig;
|
||||
in
|
||||
{
|
||||
backend = "ssh";
|
||||
sign-all = true;
|
||||
key = gitCfg.signing.key;
|
||||
};
|
||||
templates = {
|
||||
draft_commit_description = ''
|
||||
concat(
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.kitty;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.kitty.enable = mkEnableOption "Enables kitty programs";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.lutris;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.lutris.enable = mkEnableOption "Enables lutris";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.mangohud;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.mangohud.enable = mkEnableOption "Enables mangohud";
|
||||
};
|
||||
|
||||
@@ -3,18 +3,20 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.mpv;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.mpv.enable = mkEnableOption "Enables mpv";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
defaultProfiles = ["gpu-hq"];
|
||||
scripts = [pkgs.mpvScripts.mpris];
|
||||
defaultProfiles = [ "gpu-hq" ];
|
||||
scripts = [ pkgs.mpvScripts.mpris ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.neovim;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./plugins
|
||||
./lsp.nix
|
||||
@@ -22,9 +24,7 @@ in {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
extraLuaConfig =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
-- Use system clipboard
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
config = {
|
||||
programs.neovim = {
|
||||
extraLuaConfig =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
-- Key mappings for various commands and navigation
|
||||
vim.api.nvim_set_keymap("n", "<C-j>", "<C-e>", { noremap = true })
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
# LSP and completions for injected langs
|
||||
otter-nvim
|
||||
@@ -8,9 +9,7 @@
|
||||
plugin = nvim-lspconfig;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
@@ -56,9 +55,7 @@
|
||||
plugin = ltex_extra-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
local ltex_extra = require("ltex_extra")
|
||||
add_lsp(lspconfig.ltex, {
|
||||
@@ -84,9 +81,7 @@
|
||||
plugin = cmp-git;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("cmp_git").setup({})
|
||||
'';
|
||||
@@ -97,9 +92,7 @@
|
||||
plugin = nvim-cmp;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
local cmp = require("cmp")
|
||||
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = alpha-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = nvim-autopairs;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("nvim-autopairs").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = nvim-bqf;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("bqf").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = bufferline-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("bufferline").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = nvim-colorizer-lua;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("colorizer").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = comment-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("Comment").setup({
|
||||
opleader = {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = conform-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("conform").setup({
|
||||
default_format_opts = {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = copilot-lua;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("copilot").setup({
|
||||
panel = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
vim-illuminate
|
||||
];
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = fidget-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("fidget").setup({
|
||||
progress = {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = vim-fugitive;
|
||||
type = "viml";
|
||||
config =
|
||||
/*
|
||||
vim
|
||||
*/
|
||||
# vim
|
||||
''
|
||||
nmap <space>G :Git<CR>
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = gitsigns-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("gitsigns").setup({
|
||||
signs = {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = lualine-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
none-ls-nvim
|
||||
@@ -6,9 +7,7 @@
|
||||
nvim-treesitter.withAllGrammars
|
||||
];
|
||||
extraConfig =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
-- Require necessary plugins
|
||||
require("plenary")
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = oil-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("oil").setup({
|
||||
buf_options = {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = plenary-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("plenary").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = range-highlight-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("range-highlight").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = nvim-treesitter.withAllGrammars;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("nvim-treesitter.configs").setup({
|
||||
highlight = {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = nvim-web-devicons;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("nvim-web-devicons").setup({})
|
||||
'';
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [
|
||||
{
|
||||
plugin = which-key-nvim;
|
||||
type = "lua";
|
||||
config =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
require("which-key").setup({})
|
||||
'';
|
||||
|
||||
@@ -3,21 +3,22 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
programs.neovim = {
|
||||
extraConfig =
|
||||
lib.mkAfter # vim
|
||||
|
||||
''
|
||||
function! SetCustomKeywords()
|
||||
syn match Todo /TODO/
|
||||
syn match Done /DONE/
|
||||
syn match Start /START/
|
||||
syn match End /END/
|
||||
endfunction
|
||||
|
||||
autocmd Syntax * call SetCustomKeywords()
|
||||
'';
|
||||
''
|
||||
function! SetCustomKeywords()
|
||||
syn match Todo /TODO/
|
||||
syn match Done /DONE/
|
||||
syn match Start /START/
|
||||
syn match End /END/
|
||||
endfunction
|
||||
|
||||
autocmd Syntax * call SetCustomKeywords()
|
||||
'';
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
rust-vim
|
||||
dart-vim-plugin
|
||||
@@ -34,15 +35,11 @@
|
||||
|
||||
{
|
||||
plugin = vimtex;
|
||||
config = let
|
||||
viewMethod =
|
||||
if config.programs.zathura.enable
|
||||
then "zathura"
|
||||
else "general";
|
||||
in
|
||||
/*
|
||||
vim
|
||||
*/
|
||||
config =
|
||||
let
|
||||
viewMethod = if config.programs.zathura.enable then "zathura" else "general";
|
||||
in
|
||||
# vim
|
||||
''
|
||||
let g:vimtex_view_method = '${viewMethod}'
|
||||
"Don't open automatically
|
||||
|
||||
@@ -5,10 +5,12 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.nvf;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.nvf.enable = mkEnableOption "Enables nvf (neovim)";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.nwg-bar;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.nwg-bar.enable = mkEnableOption "Enables nwg-bar";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,18 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkOption types mkMerge;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkIf
|
||||
mkEnableOption
|
||||
mkOption
|
||||
types
|
||||
mkMerge
|
||||
;
|
||||
cfg = config.home.programs.pkgs;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.pkgs = {
|
||||
enable = mkEnableOption "Enables miscellaneous utility apps";
|
||||
@@ -41,14 +49,15 @@ in {
|
||||
programs = {
|
||||
btop = {
|
||||
enable = true;
|
||||
package = pkgs.btop.override {rocmSupport = true;};
|
||||
package = pkgs.btop.override { rocmSupport = true; };
|
||||
settings = {
|
||||
color_theme = "gruvbox_material_dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs;
|
||||
home.packages =
|
||||
with pkgs;
|
||||
mkMerge [
|
||||
[
|
||||
cmatrix
|
||||
@@ -98,13 +107,13 @@ in {
|
||||
])
|
||||
|
||||
(mkIf cfg.laptop.enable [
|
||||
])
|
||||
])
|
||||
|
||||
(mkIf cfg.server.enable [
|
||||
])
|
||||
])
|
||||
|
||||
(mkIf cfg.dev.enable [
|
||||
])
|
||||
])
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.rofi;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.rofi.enable = mkEnableOption "Enables firefox";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.ssh;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.ssh.enable = mkEnableOption "Enables ssh";
|
||||
};
|
||||
|
||||
@@ -4,12 +4,20 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption concatStringsSep head filter getExe;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkIf
|
||||
mkEnableOption
|
||||
concatStringsSep
|
||||
head
|
||||
filter
|
||||
getExe
|
||||
;
|
||||
cfg = config.home.programs.steam;
|
||||
steam-with-pkgs = pkgs.steam.override {
|
||||
extraPkgs = pkgs:
|
||||
with pkgs; [
|
||||
extraPkgs =
|
||||
pkgs: with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
@@ -25,32 +33,34 @@
|
||||
};
|
||||
|
||||
monitor = head (filter (m: m.primary) config.monitors);
|
||||
steam-session = let
|
||||
gamescope = concatStringsSep " " [
|
||||
(getExe pkgs.gamescope)
|
||||
"--output-width ${toString monitor.width}"
|
||||
"--output-height ${toString monitor.height}"
|
||||
"--framerate-limit ${toString monitor.refreshRate}"
|
||||
"--prefer-output ${monitor.name}"
|
||||
# "--adaptive-sync"
|
||||
"--expose-wayland"
|
||||
"--hdr-enabled"
|
||||
"--steam"
|
||||
];
|
||||
steam = concatStringsSep " " [
|
||||
"steam"
|
||||
"steam://open/bigpicture"
|
||||
];
|
||||
in
|
||||
steam-session =
|
||||
let
|
||||
gamescope = concatStringsSep " " [
|
||||
(getExe pkgs.gamescope)
|
||||
"--output-width ${toString monitor.width}"
|
||||
"--output-height ${toString monitor.height}"
|
||||
"--framerate-limit ${toString monitor.refreshRate}"
|
||||
"--prefer-output ${monitor.name}"
|
||||
# "--adaptive-sync"
|
||||
"--expose-wayland"
|
||||
"--hdr-enabled"
|
||||
"--steam"
|
||||
];
|
||||
steam = concatStringsSep " " [
|
||||
"steam"
|
||||
"steam://open/bigpicture"
|
||||
];
|
||||
in
|
||||
pkgs.writeTextDir "share/wayland-sessions/steam-sesson.desktop" # ini
|
||||
|
||||
''
|
||||
[Desktop Entry]
|
||||
Name=Steam Session
|
||||
Exec=${gamescope} -- ${steam}
|
||||
Type=Application
|
||||
'';
|
||||
in {
|
||||
|
||||
''
|
||||
[Desktop Entry]
|
||||
Name=Steam Session
|
||||
Exec=${gamescope} -- ${steam}
|
||||
Type=Application
|
||||
'';
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.steam.enable = mkEnableOption "Enables steam";
|
||||
};
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.tuirun;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.tuirun.homeManagerModules.default
|
||||
];
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.vscode;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.vscode.enable = mkEnableOption "Enables vscode";
|
||||
};
|
||||
|
||||
@@ -3,19 +3,21 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.waybar;
|
||||
# uwsm = lib.getExe pkgs.uwsm;
|
||||
waybar = lib.getExe pkgs.waybar;
|
||||
|
||||
waybarAssets = pkgs.runCommand "waybar-config-assets" {} ''
|
||||
waybarAssets = pkgs.runCommand "waybar-config-assets" { } ''
|
||||
mkdir -p $out/assets
|
||||
cp ${./assets/button.svg} $out/assets/button.svg
|
||||
cp ${./config/style.css} $out/style.css
|
||||
cp ${./config/config.jsonc} $out/config.jsonc
|
||||
'';
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.waybar.enable = mkEnableOption "Enables waybar";
|
||||
};
|
||||
@@ -23,7 +25,7 @@ in {
|
||||
systemd.user.services.waybar = {
|
||||
Unit = {
|
||||
Description = "Highly customizable Wayland bar for Sway and Wlroots based compositors.";
|
||||
After = ["graphical-session.target"];
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "exec";
|
||||
@@ -32,7 +34,7 @@ in {
|
||||
Slice = "app-graphical.slice";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,13 +4,15 @@
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
enable_wayland = "true";
|
||||
# weztermPkg = pkgs.wezterm;
|
||||
weztermFlake = inputs.wezterm.packages.${pkgs.system}.default;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.wezterm;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.wezterm.enable = mkEnableOption "Enables wezterm programs";
|
||||
};
|
||||
@@ -19,9 +21,7 @@ in {
|
||||
enable = true;
|
||||
package = weztermFlake;
|
||||
extraConfig =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
# lua
|
||||
''
|
||||
local wezterm = require 'wezterm'
|
||||
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.yazi;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./theme
|
||||
];
|
||||
@@ -25,7 +27,11 @@ in {
|
||||
|
||||
settings = {
|
||||
manager = {
|
||||
layout = [1 4 3];
|
||||
layout = [
|
||||
1
|
||||
4
|
||||
3
|
||||
];
|
||||
sort_by = "alphabetical";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
{
|
||||
programs.yazi.theme.help = {
|
||||
on = {fg = "#fe8019";};
|
||||
exec = {fg = "#83a598";};
|
||||
desc = {fg = "#928374";};
|
||||
on = {
|
||||
fg = "#fe8019";
|
||||
};
|
||||
exec = {
|
||||
fg = "#83a598";
|
||||
};
|
||||
desc = {
|
||||
fg = "#928374";
|
||||
};
|
||||
hovered = {
|
||||
bg = "#504945";
|
||||
bold = true;
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{
|
||||
programs.yazi.theme.input = {
|
||||
border = {fg = "#bdae93";};
|
||||
title = {};
|
||||
value = {};
|
||||
selected = {reversed = true;};
|
||||
border = {
|
||||
fg = "#bdae93";
|
||||
};
|
||||
title = { };
|
||||
value = { };
|
||||
selected = {
|
||||
reversed = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
{
|
||||
programs.yazi.theme.manager = {
|
||||
cwd = {fg = "#83a598";};
|
||||
cwd = {
|
||||
fg = "#83a598";
|
||||
};
|
||||
# Hovered
|
||||
hovered = {
|
||||
fg = "#282828";
|
||||
bg = "#83a598";
|
||||
};
|
||||
|
||||
preview_hovered = {underline = true;};
|
||||
preview_hovered = {
|
||||
underline = true;
|
||||
};
|
||||
|
||||
# Find
|
||||
find_keyword = {
|
||||
@@ -47,11 +51,23 @@
|
||||
|
||||
# Border;
|
||||
border_symbol = "│";
|
||||
border_style = {fg = "#665c54";};
|
||||
border_style = {
|
||||
fg = "#665c54";
|
||||
};
|
||||
|
||||
# Offset;
|
||||
folder_offset = [1 0 1 0];
|
||||
preview_offset = [1 1 1 1];
|
||||
folder_offset = [
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
];
|
||||
preview_offset = [
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
];
|
||||
|
||||
# Highlighting;
|
||||
syntect_theme = "";
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{
|
||||
programs.yazi.theme.select = {
|
||||
border = {fg = "#504945";};
|
||||
active = {fg = "#fe8019";};
|
||||
inactive = {};
|
||||
border = {
|
||||
fg = "#504945";
|
||||
};
|
||||
active = {
|
||||
fg = "#fe8019";
|
||||
};
|
||||
inactive = { };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,10 +39,20 @@
|
||||
};
|
||||
|
||||
# Permissions;
|
||||
permissions_t = {fg = "#504945";};
|
||||
permissions_r = {fg = "#b8bb26";};
|
||||
permissions_w = {fg = "#fb4934";};
|
||||
permissions_x = {fg = "#b8bb26";};
|
||||
permissions_s = {fg = "#665c54";};
|
||||
permissions_t = {
|
||||
fg = "#504945";
|
||||
};
|
||||
permissions_r = {
|
||||
fg = "#b8bb26";
|
||||
};
|
||||
permissions_w = {
|
||||
fg = "#fb4934";
|
||||
};
|
||||
permissions_x = {
|
||||
fg = "#b8bb26";
|
||||
};
|
||||
permissions_s = {
|
||||
fg = "#665c54";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{
|
||||
programs.yazi.theme.tasks = {
|
||||
border = {fg = "#504945";};
|
||||
title = {};
|
||||
hovered = {underline = true;};
|
||||
border = {
|
||||
fg = "#504945";
|
||||
};
|
||||
title = { };
|
||||
hovered = {
|
||||
underline = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
{
|
||||
programs.yazi.theme.which = {
|
||||
mask = {bg = "#3c3836";};
|
||||
cand = {fg = "#83a598";};
|
||||
rest = {fg = "#928374";};
|
||||
desc = {fg = "#fe8019";};
|
||||
mask = {
|
||||
bg = "#3c3836";
|
||||
};
|
||||
cand = {
|
||||
fg = "#83a598";
|
||||
};
|
||||
rest = {
|
||||
fg = "#928374";
|
||||
};
|
||||
desc = {
|
||||
fg = "#fe8019";
|
||||
};
|
||||
separator = " ";
|
||||
separator_style = {fg = "#504945";};
|
||||
separator_style = {
|
||||
fg = "#504945";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.zathura;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.zathura.enable = mkEnableOption "Enables zathura";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.zed-editor;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.zed-editor.enable = mkEnableOption "Enables zed-editor";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.zellij;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.zellij.enable = mkEnableOption "Enables zellij";
|
||||
};
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.zen;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.zen.enable = mkEnableOption "Enables zen browser";
|
||||
};
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (pkgs) eza bat;
|
||||
cfg = config.home.programs.zsh;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.programs.zsh.enable = mkEnableOption "Enables zsh home configuration";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.blueman-applet;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.blueman-applet.enable = mkEnableOption "Enables blueman-applet";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.copyq;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.copyq.enable = mkEnableOption "Enables copyq";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) types mkOption;
|
||||
cfg = config.home.services.dconf;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.dconf.settings.color-scheme = mkOption {
|
||||
type = types.str;
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.dunst;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.dunst.enable = mkEnableOption "Enables dunst";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.gpg;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.gpg.enable = mkEnableOption "Enables gpg";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.gtk;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.gtk.enable = mkEnableOption "Enables miscellaneous GTK elements";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) types mkOption mkIf;
|
||||
cfg = config.home.userd.gtk;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.userd.gtk.enable = mkOption {
|
||||
type = types.bool;
|
||||
@@ -60,7 +62,7 @@ in {
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home = {
|
||||
packages = [pkgs.glib];
|
||||
packages = [ pkgs.glib ];
|
||||
|
||||
pointerCursor = {
|
||||
package = cfg.cursorTheme.package;
|
||||
|
||||
@@ -4,13 +4,15 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.hypridle;
|
||||
|
||||
hypridleFlake = inputs.hypridle.packages.${pkgs.system}.hypridle;
|
||||
# hypridlePkg = pkgs.hypridle;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.hypridle.enable = mkEnableOption "Enables hypridle";
|
||||
};
|
||||
|
||||
@@ -5,13 +5,15 @@
|
||||
inputs,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.hyprpaper;
|
||||
|
||||
hyprpaperFlake = inputs.hyprpaper.packages.${pkgs.system}.default;
|
||||
# hyprpaperPkg = pkgs.hyprpaper;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.hyprpaper.enable = mkEnableOption "Enables hyprpaper";
|
||||
};
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.mako;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.mako.enable = mkEnableOption "Enables mako";
|
||||
};
|
||||
@@ -26,28 +28,30 @@ in {
|
||||
borderColor = "#689d6add";
|
||||
textColor = "#d5c4a1dd";
|
||||
layer = "overlay";
|
||||
extraConfig = let
|
||||
play = sound: "mpv ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/${sound}.oga";
|
||||
in ''
|
||||
max-history=50
|
||||
max-visible=4
|
||||
outer-margin=25
|
||||
icon-location=right
|
||||
max-icon-size=48
|
||||
[urgency=high]
|
||||
border-color=#7DAEA3dd
|
||||
[urgency=critical]
|
||||
border-color=#f95f32dd
|
||||
on-notify=exec ${play "message"}
|
||||
[app-name=yubikey-touch-detector]
|
||||
on-notify=exec ${play "service-login"}
|
||||
[app-name=command_complete summary~="✘.*"]
|
||||
on-notify=exec ${play "dialog-warning"}
|
||||
[app-name=command_complete summary~="✓.*"]
|
||||
on-notify=exec ${play "bell"}
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
'';
|
||||
extraConfig =
|
||||
let
|
||||
play = sound: "mpv ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/${sound}.oga";
|
||||
in
|
||||
''
|
||||
max-history=50
|
||||
max-visible=4
|
||||
outer-margin=25
|
||||
icon-location=right
|
||||
max-icon-size=48
|
||||
[urgency=high]
|
||||
border-color=#7DAEA3dd
|
||||
[urgency=critical]
|
||||
border-color=#f95f32dd
|
||||
on-notify=exec ${play "message"}
|
||||
[app-name=yubikey-touch-detector]
|
||||
on-notify=exec ${play "service-login"}
|
||||
[app-name=command_complete summary~="✘.*"]
|
||||
on-notify=exec ${play "dialog-warning"}
|
||||
[app-name=command_complete summary~="✓.*"]
|
||||
on-notify=exec ${play "bell"}
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf getExe;
|
||||
cfg = config.home.services.nix-index;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.nix-index.enable = mkEnableOption "Enables nix-index";
|
||||
};
|
||||
@@ -46,7 +48,7 @@ in {
|
||||
OnBootSec = "10m";
|
||||
OnUnitActiveSec = "24h";
|
||||
};
|
||||
Install.WantedBy = ["timers.target"];
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.syncthing;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.syncthing.enable = mkEnableOption "Enables syncthing";
|
||||
};
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.services.udiskie;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.udiskie.enable = mkEnableOption "Enables udiskie";
|
||||
};
|
||||
|
||||
@@ -3,14 +3,27 @@
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkForce elem;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkIf
|
||||
mkEnableOption
|
||||
mkForce
|
||||
elem
|
||||
;
|
||||
browser =
|
||||
if elem osConfig.networking.hostName ["kima" "bunk"]
|
||||
then "zen.desktop"
|
||||
else "firefox.desktop";
|
||||
if
|
||||
elem osConfig.networking.hostName [
|
||||
"kima"
|
||||
"bunk"
|
||||
]
|
||||
then
|
||||
"zen.desktop"
|
||||
else
|
||||
"firefox.desktop";
|
||||
cfg = config.home.services.xdg;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
home.services.xdg.enable = mkEnableOption "Enables XDG settings";
|
||||
};
|
||||
@@ -81,15 +94,42 @@ in {
|
||||
"image/tiff" = "oculante.desktop";
|
||||
"image/webp" = "oculante.desktop";
|
||||
|
||||
"video/H264" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/x-msvideo" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/mp4" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/mpeg" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/ogg" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/mp2t" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/webm" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/3gpp" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/3gpp2" = ["mpv.desktop" "vlc.desktop"];
|
||||
"video/H264" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/x-msvideo" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/mp4" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/mpeg" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/ogg" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/mp2t" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/webm" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/3gpp" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
"video/3gpp2" = [
|
||||
"mpv.desktop"
|
||||
"vlc.desktop"
|
||||
];
|
||||
|
||||
"application/x-7z-compressed" = "org.gnome.FileRoller.desktop";
|
||||
"application/zip" = "org.gnome.FileRoller.desktop";
|
||||
|
||||
Reference in New Issue
Block a user