mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: init
This commit is contained in:
commit
96c6f790fc
804 changed files with 33411 additions and 0 deletions
12
modules/home/cli/android/androidFileTransfer/default.nix
Executable file
12
modules/home/cli/android/androidFileTransfer/default.nix
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
android-file-transfer
|
||||
;
|
||||
};
|
||||
}
|
||||
# requires that users be part of the adbusers group
|
12
modules/home/cli/android/androidTools/default.nix
Executable file
12
modules/home/cli/android/androidTools/default.nix
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
android-tools
|
||||
;
|
||||
};
|
||||
}
|
||||
# requires that users be part of the adbusers group
|
11
modules/home/cli/android/default.nix
Executable file
11
modules/home/cli/android/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
11
modules/home/cli/android/simpleMtpfs/default.nix
Executable file
11
modules/home/cli/android/simpleMtpfs/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
simple-mtpfs
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/default.nix
Executable file
11
modules/home/cli/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
11
modules/home/cli/development/default.nix
Executable file
11
modules/home/cli/development/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
11
modules/home/cli/development/editing/default.nix
Executable file
11
modules/home/cli/development/editing/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
44
modules/home/cli/development/editing/helix/config/languages.nix
Executable file
44
modules/home/cli/development/editing/helix/config/languages.nix
Executable file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
language = [
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "nixfmt";
|
||||
name = "nix";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "cssfmt";
|
||||
name = "css";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
language-servers = [
|
||||
"elm-language-server"
|
||||
];
|
||||
name = "elm";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "haskell";
|
||||
name = "haskell";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "yamlfmt";
|
||||
name = "yaml";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "yuck";
|
||||
name = "yuck";
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
elm-language-server = {
|
||||
config.elmLS = {
|
||||
disableElmLSDiagnostics = true;
|
||||
elmReviewDiagnostics = "warning";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
62
modules/home/cli/development/editing/helix/config/settings.nix
Executable file
62
modules/home/cli/development/editing/helix/config/settings.nix
Executable file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
editor = {
|
||||
mouse = true;
|
||||
auto-format = true;
|
||||
soft-wrap.enable = true;
|
||||
auto-save = true;
|
||||
line-number = "relative";
|
||||
cursorline = true;
|
||||
indent-guides = {
|
||||
character = "╎";
|
||||
skip-levels = 1;
|
||||
render = true;
|
||||
};
|
||||
lsp = {
|
||||
display-messages = true;
|
||||
display-inlay-hints = true;
|
||||
};
|
||||
};
|
||||
|
||||
keys = {
|
||||
normal = {
|
||||
f = ":format";
|
||||
tab = "indent";
|
||||
S-tab = "unindent";
|
||||
ret = [
|
||||
"add_newline_below"
|
||||
"move_line_down"
|
||||
];
|
||||
S-ret = [
|
||||
"add_newline_above"
|
||||
"move_line_up"
|
||||
];
|
||||
S-up = [
|
||||
"extend_to_line_bounds"
|
||||
"delete_selection"
|
||||
"move_line_up"
|
||||
"paste_before"
|
||||
];
|
||||
|
||||
S-down = [
|
||||
"extend_to_line_bounds"
|
||||
"delete_selection"
|
||||
"paste_after"
|
||||
];
|
||||
S-g = [
|
||||
":write-all"
|
||||
":new"
|
||||
":insert-output lazygit"
|
||||
":buffer-close!"
|
||||
":redraw"
|
||||
":reload-all"
|
||||
];
|
||||
Y = "yank_main_selection_to_primary_clipboard";
|
||||
R = "replace_selections_with_primary_clipboard";
|
||||
space = {
|
||||
q = ":q";
|
||||
w = ":w";
|
||||
};
|
||||
};
|
||||
};
|
||||
theme = "catppuccin_macchiato";
|
||||
}
|
19
modules/home/cli/development/editing/helix/default.nix
Executable file
19
modules/home/cli/development/editing/helix/default.nix
Executable file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.helix =
|
||||
let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
languagesPath = import (configPath + /languages.nix);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = flake.inputs.helix.packages.${pkgs.system}.default;
|
||||
languages = languagesPath;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
11
modules/home/cli/development/tooling/default.nix
Executable file
11
modules/home/cli/development/tooling/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
16
modules/home/cli/development/tooling/elm/default.nix
Executable file
16
modules/home/cli/development/tooling/elm/default.nix
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs.elmPackages)
|
||||
elm
|
||||
elm-format
|
||||
elm-land
|
||||
elm-language-server
|
||||
elm-review
|
||||
elm-test
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/development/tooling/javascript/default.nix
Executable file
11
modules/home/cli/development/tooling/javascript/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs.nodePackages)
|
||||
nodejs
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/development/versioning/default.nix
Executable file
11
modules/home/cli/development/versioning/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
16
modules/home/cli/development/versioning/git/default.nix
Executable file
16
modules/home/cli/development/versioning/git/default.nix
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
user = config.home.username;
|
||||
userConfig = flake.config.people.users.${user};
|
||||
in
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = userConfig.name;
|
||||
userEmail = userConfig.email.address0;
|
||||
};
|
||||
}
|
7
modules/home/cli/development/versioning/lazygit/default.nix
Executable file
7
modules/home/cli/development/versioning/lazygit/default.nix
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
}
|
11
modules/home/cli/files/default.nix
Executable file
11
modules/home/cli/files/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
11
modules/home/cli/files/fileRoller/default.nix
Executable file
11
modules/home/cli/files/fileRoller/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
file-roller
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/files/ncdu/default.nix
Executable file
11
modules/home/cli/files/ncdu/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
ncdu
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/files/samba/default.nix
Executable file
11
modules/home/cli/files/samba/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
samba
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/files/unrar/default.nix
Executable file
11
modules/home/cli/files/unrar/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
unrar
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/files/unzip/default.nix
Executable file
11
modules/home/cli/files/unzip/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
unzip
|
||||
;
|
||||
};
|
||||
}
|
16
modules/home/cli/files/yazi/config/keymap.nix
Executable file
16
modules/home/cli/files/yazi/config/keymap.nix
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
keymap.manager.prepend_keymap = [
|
||||
{
|
||||
on = [
|
||||
"Q"
|
||||
];
|
||||
run = "quit";
|
||||
}
|
||||
{
|
||||
on = [
|
||||
"q"
|
||||
];
|
||||
run = "quit --no-cwd-file";
|
||||
}
|
||||
];
|
||||
}
|
18
modules/home/cli/files/yazi/config/settings.nix
Executable file
18
modules/home/cli/files/yazi/config/settings.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
settings = {
|
||||
log = {
|
||||
enabled = false;
|
||||
};
|
||||
manager = {
|
||||
show_hidden = true;
|
||||
sort_by = "alphabetical";
|
||||
sort_dir_first = true;
|
||||
sort_reverse = false;
|
||||
};
|
||||
preview = {
|
||||
tab_size = 2;
|
||||
max_width = 1500;
|
||||
max_height = 1000;
|
||||
};
|
||||
};
|
||||
}
|
22
modules/home/cli/files/yazi/default.nix
Executable file
22
modules/home/cli/files/yazi/default.nix
Executable file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.yazi =
|
||||
let
|
||||
configPath = ./config;
|
||||
keymapPath = import (configPath + /keymap.nix);
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
# package = flake.inputs.yazi.packages.${pkgs.system}.yazi;
|
||||
enableNushellIntegration = true;
|
||||
keymap = keymapPath;
|
||||
settings = settingsPath;
|
||||
};
|
||||
# Keymap
|
||||
# https://github.com/sxyazi/yazi/blob/main/yazi-config/preset/keymap.toml
|
||||
}
|
11
modules/home/cli/files/zip/default.nix
Executable file
11
modules/home/cli/files/zip/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
zip
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/fun/aniCli/default.nix
Executable file
11
modules/home/cli/fun/aniCli/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
ani-cli
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/fun/default.nix
Executable file
11
modules/home/cli/fun/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
76
modules/home/cli/fun/fastFetch/config/settings.nix
Executable file
76
modules/home/cli/fun/fastFetch/config/settings.nix
Executable file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
logo = {
|
||||
source = "nixos_large";
|
||||
padding = {
|
||||
right = 2;
|
||||
top = 3;
|
||||
};
|
||||
};
|
||||
display = {
|
||||
size = {
|
||||
binaryPrefix = "si";
|
||||
};
|
||||
color = "magenta";
|
||||
separator = " → ";
|
||||
};
|
||||
modules = [
|
||||
{
|
||||
type = "separator";
|
||||
string = "SYSTEM: ";
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = "NixOS Version";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = "Kernel Version";
|
||||
}
|
||||
"shell"
|
||||
"terminal"
|
||||
"packages"
|
||||
"locale"
|
||||
{
|
||||
type = "wm";
|
||||
key = "Window Manager";
|
||||
}
|
||||
{
|
||||
type = "separator";
|
||||
string = "HARDWARE: ";
|
||||
}
|
||||
{
|
||||
type = "board";
|
||||
key = "Motherboard";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = "Processor";
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = "Graphics";
|
||||
}
|
||||
"memory"
|
||||
"disk"
|
||||
"display"
|
||||
"gamepad"
|
||||
{
|
||||
type = "sound";
|
||||
key = "Audio Interface";
|
||||
}
|
||||
{
|
||||
type = "separator";
|
||||
string = "INTERFACE: ";
|
||||
}
|
||||
"theme"
|
||||
"cursor"
|
||||
"icons"
|
||||
"font"
|
||||
"editor"
|
||||
"player"
|
||||
{
|
||||
type = "media";
|
||||
key = "Song";
|
||||
}
|
||||
];
|
||||
}
|
10
modules/home/cli/fun/fastFetch/default.nix
Executable file
10
modules/home/cli/fun/fastFetch/default.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
in
|
||||
{
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
11
modules/home/cli/fun/libgenCli/default.nix
Executable file
11
modules/home/cli/fun/libgenCli/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
libgen-cli
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/fun/nyanCat/default.nix
Executable file
11
modules/home/cli/fun/nyanCat/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
nyancat
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/fun/yaBridge/default.nix
Executable file
11
modules/home/cli/fun/yaBridge/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
yabridge
|
||||
;
|
||||
};
|
||||
}
|
4
modules/home/cli/fun/yt-dlp/config/extraConfig.nix
Executable file
4
modules/home/cli/fun/yt-dlp/config/extraConfig.nix
Executable file
|
@ -0,0 +1,4 @@
|
|||
''
|
||||
--embed-chapters
|
||||
--audio-quality 0
|
||||
''
|
7
modules/home/cli/fun/yt-dlp/config/settings.nix
Executable file
7
modules/home/cli/fun/yt-dlp/config/settings.nix
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
embed-thumbnail = true;
|
||||
embed-subs = true;
|
||||
sub-langs = "english";
|
||||
downloader = "aria2c";
|
||||
downloader-args = "aria2c:'-c -x8 -s8 -k1M'";
|
||||
}
|
13
modules/home/cli/fun/yt-dlp/default.nix
Executable file
13
modules/home/cli/fun/yt-dlp/default.nix
Executable file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
programs.yt-dlp =
|
||||
let
|
||||
configPath = ./config;
|
||||
extraConfigPath = import (configPath + /extraConfig.nix);
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
extraConfig = extraConfigPath;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
11
modules/home/cli/shell/default.nix
Executable file
11
modules/home/cli/shell/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
15
modules/home/cli/shell/nushell/default.nix
Executable file
15
modules/home/cli/shell/nushell/default.nix
Executable file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
configFile.text = ''
|
||||
sleep 7ms
|
||||
$env.config = {show_banner: false}
|
||||
'';
|
||||
shellAliases = {
|
||||
y = "yy";
|
||||
lg = "lazygit";
|
||||
yt = "yt-dlp --embed-chapters";
|
||||
ze = "zellij";
|
||||
};
|
||||
};
|
||||
}
|
98
modules/home/cli/shell/starship/config/settings.nix
Executable file
98
modules/home/cli/shell/starship/config/settings.nix
Executable file
|
@ -0,0 +1,98 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes) currentTheme palettes;
|
||||
|
||||
inherit (flake.config.people) user0 user1 user2;
|
||||
|
||||
user = config.home.username;
|
||||
|
||||
themeLogic =
|
||||
if user == user0 then
|
||||
currentTheme.theme0
|
||||
else if user == user1 then
|
||||
currentTheme.theme1
|
||||
else if user == user2 then
|
||||
currentTheme.theme2
|
||||
else
|
||||
currentTheme.theme0;
|
||||
|
||||
el = palettes.${themeLogic}.colours;
|
||||
|
||||
makeColor = c: "#" + c;
|
||||
makeStyle = bg: fg: "bg:" + bg + " fg:" + fg + " bold";
|
||||
surround =
|
||||
fg: text:
|
||||
"[](fg:"
|
||||
+ makeColor el.base00
|
||||
+ " bg:"
|
||||
+ fg
|
||||
+ ")"
|
||||
+ "[█](fg:"
|
||||
+ fg
|
||||
+ ")"
|
||||
+ text
|
||||
+ "[█](fg:"
|
||||
+ fg
|
||||
+ ")";
|
||||
in
|
||||
{
|
||||
add_newline = false;
|
||||
character =
|
||||
let
|
||||
makeChar =
|
||||
bg: c:
|
||||
surround (makeColor bg) ("[" + c + "](" + makeStyle (makeColor bg) (makeColor el.base11) + ")");
|
||||
in
|
||||
{
|
||||
error_symbol = makeChar el.base12 "⊥";
|
||||
format = "$symbol";
|
||||
success_symbol = makeChar el.base0C "λ";
|
||||
};
|
||||
cmd_duration = {
|
||||
format = surround (makeColor el.base0E) "[ $duration]($style)";
|
||||
min_time = 0;
|
||||
show_milliseconds = true;
|
||||
style = makeStyle (makeColor el.base0E) (makeColor el.base11);
|
||||
};
|
||||
directory = {
|
||||
format = surround (makeColor el.base0D) "[ $path]($style)[$read_only]($read_only_style)";
|
||||
read_only = " ";
|
||||
read_only_style = makeStyle (makeColor el.base0D) (makeColor el.base11);
|
||||
style = makeStyle (makeColor el.base0D) (makeColor el.base11);
|
||||
truncation_length = 1;
|
||||
truncate_to_repo = false;
|
||||
};
|
||||
git_branch = {
|
||||
format = surround (makeColor el.base09) "[$symbol $branch]($style)";
|
||||
style = makeStyle (makeColor el.base09) (makeColor el.base11);
|
||||
symbol = "";
|
||||
};
|
||||
git_status = {
|
||||
format = "[ \\[$all_status$ahead_behind\\]]($style)";
|
||||
style = makeStyle (makeColor el.base0A) (makeColor el.base11);
|
||||
};
|
||||
hostname = {
|
||||
format = surround (makeColor el.base16) "[$ssh_symbol$hostname]($style)";
|
||||
ssh_symbol = " ";
|
||||
style = makeStyle (makeColor el.base16) (makeColor el.base11);
|
||||
};
|
||||
pijul_channel = {
|
||||
disabled = false;
|
||||
format = surround (makeColor el.base09) "[$symbol $channel]($style)";
|
||||
style = makeStyle (makeColor el.base09) (makeColor el.base11);
|
||||
symbol = "";
|
||||
};
|
||||
format = lib.concatStrings [
|
||||
"$hostname"
|
||||
"$directory"
|
||||
"$pijul_channel"
|
||||
"$git_branch"
|
||||
"$cmd_duration"
|
||||
"$character "
|
||||
];
|
||||
}
|
16
modules/home/cli/shell/starship/default.nix
Executable file
16
modules/home/cli/shell/starship/default.nix
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix) { inherit config flake lib; };
|
||||
in
|
||||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
6
modules/home/cli/shell/zellij/default.nix
Executable file
6
modules/home/cli/shell/zellij/default.nix
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
settings.theme = "catppuccin-macchiato";
|
||||
};
|
||||
}
|
10
modules/home/cli/shell/zoxide/default.nix
Executable file
10
modules/home/cli/shell/zoxide/default.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
package = pkgs.zoxide;
|
||||
options = [
|
||||
];
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/alsaUtils/default.nix
Executable file
11
modules/home/cli/utilities/alsaUtils/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
alsa-utils
|
||||
;
|
||||
};
|
||||
}
|
67
modules/home/cli/utilities/bottom/config/settings.nix
Executable file
67
modules/home/cli/utilities/bottom/config/settings.nix
Executable file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
currentTheme
|
||||
palettes
|
||||
;
|
||||
|
||||
inherit (flake.config.people) user0 user1 user2;
|
||||
|
||||
user = config.home.username;
|
||||
|
||||
themeLogic =
|
||||
if user == user0 then
|
||||
currentTheme.theme0
|
||||
else if user == user1 then
|
||||
currentTheme.theme1
|
||||
else if user == user2 then
|
||||
currentTheme.theme2
|
||||
else
|
||||
currentTheme.theme0;
|
||||
|
||||
el = palettes.${themeLogic}.colours;
|
||||
in
|
||||
{
|
||||
colors = {
|
||||
tableHeaderColor = el.base06;
|
||||
allCpuColor = el.base06;
|
||||
avgCpuColor = el.base12;
|
||||
cpuCoreColors = [
|
||||
el.base07
|
||||
el.base16
|
||||
el.base09
|
||||
el.base0A
|
||||
el.base0B
|
||||
el.base15
|
||||
el.base0E
|
||||
];
|
||||
ramColor = el.base0B;
|
||||
swapColor = el.base09;
|
||||
rxColor = el.base0B;
|
||||
txColor = el.base08;
|
||||
widgetTitleColor = el.base0F;
|
||||
borderColor = el.base04;
|
||||
highlightedBorderColor = el.base17;
|
||||
textColor = el.base05;
|
||||
graphColor = el.base05;
|
||||
cursorColor = el.base17;
|
||||
selectedTextColor = el.base11;
|
||||
selectedBgColor = el.base0E;
|
||||
highBatteryColor = el.base0B;
|
||||
mediumBatteryColor = el.base0A;
|
||||
lowBatteryColor = el.base08;
|
||||
gpuCoreColors = [
|
||||
el.base15
|
||||
el.base0E
|
||||
el.base08
|
||||
el.base09
|
||||
el.base0A
|
||||
el.base0B
|
||||
];
|
||||
arcColor = el.base15;
|
||||
};
|
||||
}
|
16
modules/home/cli/utilities/bottom/default.nix
Executable file
16
modules/home/cli/utilities/bottom/default.nix
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.bottom =
|
||||
let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix) { inherit config flake; };
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/brightnessCtl/default.nix
Executable file
11
modules/home/cli/utilities/brightnessCtl/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
brightnessctl
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/cifsUtils/default.nix
Executable file
11
modules/home/cli/utilities/cifsUtils/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
cifs-utils
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/default.nix
Executable file
11
modules/home/cli/utilities/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
6
modules/home/cli/utilities/direnv/default.nix
Executable file
6
modules/home/cli/utilities/direnv/default.nix
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/ffmpeg/default.nix
Executable file
11
modules/home/cli/utilities/ffmpeg/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
ffmpeg
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/flac/default.nix
Executable file
11
modules/home/cli/utilities/flac/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
flac
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/gLib/default.nix
Executable file
11
modules/home/cli/utilities/gLib/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
glib
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/hardInfo/default.nix
Executable file
11
modules/home/cli/utilities/hardInfo/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
hardinfo
|
||||
;
|
||||
};
|
||||
}
|
1
modules/home/cli/utilities/homeManager/default.nix
Executable file
1
modules/home/cli/utilities/homeManager/default.nix
Executable file
|
@ -0,0 +1 @@
|
|||
{ programs.home-manager.enable = true; }
|
11
modules/home/cli/utilities/inetUtils/default.nix
Executable file
11
modules/home/cli/utilities/inetUtils/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
inetutils
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/libnatpmp/default.nix
Executable file
11
modules/home/cli/utilities/libnatpmp/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
libnatpmp
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/ngrrram/default.nix
Executable file
11
modules/home/cli/utilities/ngrrram/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
ngrrram
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/paMixer/default.nix
Executable file
11
modules/home/cli/utilities/paMixer/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
pamixer
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/parted/default.nix
Executable file
11
modules/home/cli/utilities/parted/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
parted
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/pciUtils/default.nix
Executable file
11
modules/home/cli/utilities/pciUtils/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
pciutils
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/pinEntry/default.nix
Executable file
11
modules/home/cli/utilities/pinEntry/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
pinentry
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/playerCtl/default.nix
Executable file
11
modules/home/cli/utilities/playerCtl/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
playerctl
|
||||
;
|
||||
};
|
||||
}
|
12
modules/home/cli/utilities/protonVpn/default.nix
Executable file
12
modules/home/cli/utilities/protonVpn/default.nix
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
protonvpn-cli_2
|
||||
protonvpn-gui
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/speedTest/default.nix
Executable file
11
modules/home/cli/utilities/speedTest/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
speedtest-rs
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/sshfs/default.nix
Executable file
11
modules/home/cli/utilities/sshfs/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
sshfs
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/tokei/default.nix
Executable file
11
modules/home/cli/utilities/tokei/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
tokei
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/tomb/default.nix
Executable file
11
modules/home/cli/utilities/tomb/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
tomb
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/usbUtils/default.nix
Executable file
11
modules/home/cli/utilities/usbUtils/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
usbutils
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/wget/default.nix
Executable file
11
modules/home/cli/utilities/wget/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
wget
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/wine/default.nix
Executable file
11
modules/home/cli/utilities/wine/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
wine
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/xdgUtils/default.nix
Executable file
11
modules/home/cli/utilities/xdgUtils/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
xdg-utils
|
||||
;
|
||||
};
|
||||
}
|
11
modules/home/cli/utilities/xdoTool/default.nix
Executable file
11
modules/home/cli/utilities/xdoTool/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
xdotool
|
||||
;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue