Add tools

This commit is contained in:
muon 2024-09-30 14:02:27 +00:00
parent 7ad646f580
commit 4dc6ab7864
5 changed files with 46 additions and 44 deletions

View file

@ -62,10 +62,11 @@ in {
};
};
# environment.variables = {
# # GDK_SCALE = "2";
# # XCURSOR_SIZE = "24";
# };
environment.variables = {
WINIT_HIDPI_FACTOR = "1";
# GDK_SCALE = "2";
# XCURSOR_SIZE = "24";
};
hardware = {
opengl = {

View file

@ -1,5 +1,5 @@
{ pkgs, lib, config, osConfig, ... }: let
cfg = osConfig.mods;
{ pkgs, lib, config, osConfig, ... }:
let cfg = osConfig.mods;
in {
imports = [
@ -13,4 +13,6 @@ in {
programs.home-manager.enable = true;
home.username = cfg.user.name;
home.homeDirectory = "/home/${cfg.user.name}";
# home.profileDirectory =
# "${config.home.homeDirectory}/.local/state/nix/profile/";
}

View file

@ -71,6 +71,7 @@ in {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
enableZshIntegration = lib.mkIf config.mods.terminal.zsh.enable true;
};
home.sessionVariables.EDITOR = "hx";

View file

@ -1,36 +1,35 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.terminal;
let cfg = config.mods.terminal;
in with lib; {
options.mods.terminal.tools.enable = mkEnableOption "enables cli tools";
config = mkIf cfg.tools.enable {
programs.zellij = {
enable = true;
# enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.fzf = {
programs = builtins.listToAttrs (map (name: {
name = name;
value = {
enable = true;
} // optionalAttrs
(builtins.hasAttr "enableZshIntegration" config.programs.${name}) {
enableZshIntegration = mkIf cfg.zsh.enable true;
};
}) [
"zellij"
"fzf"
"eza"
"bat"
"zoxide"
"dircolors"
"yazi"
"nix-index"
"thefuck"
programs.zoxide = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.dircolors = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.yazi = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.lazygit.enable = true;
"lazygit"
"fd"
"ripgrep"
"bottom"
"htop"
]);
home.packages = with pkgs; [
# libraries
@ -38,13 +37,11 @@ in with lib; {
ueberzugpp
# file managing
fd
ripgrep
trash-cli
# programs
bottom
fend
unzip
];
};
}

View file

@ -1,8 +1,9 @@
{ pkgs, lib, config, ... }: {
options.mods.xdg.enable =
lib.mkEnableOption "enables xdg settings";
options.mods.xdg.enable = lib.mkEnableOption "enables xdg settings";
config = lib.mkIf config.mods.xdg.enable {
nix.settings.use-xdg-base-directories = true;
xdg = let
browser = [ "librewolf.desktop" ];
associations = {