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 = [
inputs.nix-colors.homeManagerModule
./shell
# ./xdg.nix
./xdg.nix
] ++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {

View file

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

View file

@ -1,69 +1,6 @@
{ pkgs, config, ... }: {
{
imports = [
./lf
./nix-index.nix
./git.nix
./fish.nix
./starship.nix
./cli
./editors
];
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;
defaultApplications = associations;
};
usrDirs = {
userDirs = {
enable = true;
creatDirectories = true;
createDirectories = true;
extraConfig = {
XDG_SCREENSHOT_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
};