add: xdg config file

This commit is contained in:
ooks-io 2023-12-04 16:17:47 +13:00
parent 52da0ad1dc
commit ced7c82160
4 changed files with 10 additions and 75 deletions

View file

@ -6,7 +6,7 @@ in
imports = [ imports = [
inputs.nix-colors.homeManagerModule inputs.nix-colors.homeManagerModule
./shell ./shell
# ./xdg.nix ./xdg.nix
] ++ (builtins.attrValues outputs.homeManagerModules); ] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = { nixpkgs = {

View file

@ -1,11 +1,9 @@
{ pkgs, config, ... }: { { pkgs, config, ... }: {
imports = [ imports = [
./lf ./lf
./fzf.nix
./git.nix ./git.nix
./bash.nix ./bash.nix
./fish.nix ./fish.nix
./pfetch.nix
./starship.nix ./starship.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -13,13 +11,13 @@
# file utility # file utility
duf duf
du-dus du-dust
fd fd
ripgrep ripgrep
# archive # archive
zip zip
uzip unzip
unrar unrar
# file transfer # file transfer
@ -53,12 +51,12 @@
}; };
skim = { skim = {
enable = true; enable = true;
enableFishIntergration = true; enableFishIntegration = true;
defaultCommand = "rg --files --hidden"; defaultCommand = "rg --files --hidden";
changeDirWidgetOptions = [ changeDirWidgetOptions = [
"--preview 'ea --icons --git --color always -T -L 3 {} | head -200'" "--preview 'ea --icons --git --color always -T -L 3 {} | head -200'"
"--exact" "--exact"
]; ];
} };
}; };
} }

View file

@ -1,69 +1,6 @@
{ pkgs, config, ... }: { {
imports = [ imports = [
./lf ./cli
./nix-index.nix ./editors
./git.nix
./fish.nix
./starship.nix
]; ];
home.packages = with pkgs; [
bc # Calculator
# file utility
duf
du-dus
fd
ripgrep
# archive
zip
uzip
unrar
# file transfer
wget
httpie # Better curl
# resource manager
powertop
diffsitter # Better diff
jq # JSON pretty printer and manipulator
lazygit # git uitlity
comma # Install and run with ","
tldr # Community maintained help pages
tmux # Terminal multiplexer
progress
killall
gcc
acpi
pfetch
];
programs = {
btop.enable = true;
eza.enable = true;
fzf.enable = true;
bash.enable = true;
bat = {
enable = true;
config = {
theme = "base16";
pager = "less -FR";
};
};
skim = {
enable = true;
enableFishIntergration = true;
defaultCommand = "rg --files --hidden";
changeDirWidgetOptions = [
"--preview 'ea --icons --git --color always -T -L 3 {} | head -200'"
"--exact"
];
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
};
} }

View file

@ -30,9 +30,9 @@ in {
enable = true; enable = true;
defaultApplications = associations; defaultApplications = associations;
}; };
usrDirs = { userDirs = {
enable = true; enable = true;
creatDirectories = true; createDirectories = true;
extraConfig = { extraConfig = {
XDG_SCREENSHOT_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; XDG_SCREENSHOT_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
}; };