mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: cleaned up nixos and home dirs
This commit is contained in:
parent
824a91d405
commit
e596e1c1b3
582 changed files with 2 additions and 22 deletions
10
modules/home/cli/files/default.nix
Executable file
10
modules/home/cli/files/default.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
content = builtins.readDir ./.;
|
||||
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
|
||||
importList = 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
|
||||
;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue