forked from javif89/nix
129 lines
3.0 KiB
Nix
Executable File
129 lines
3.0 KiB
Nix
Executable File
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./common/git.nix
|
|
./common/kitty.nix
|
|
./common/neovim.nix
|
|
./common/shell.nix
|
|
./common/starship.nix
|
|
./common/yazi.nix
|
|
./hyprland
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# gtk = {
|
|
# enable = true;
|
|
# iconTheme = {
|
|
# name = "Papirus";
|
|
# package = pkgs.papirus-icon-theme;
|
|
# };
|
|
# };
|
|
|
|
home = {
|
|
username = "javi";
|
|
homeDirectory = "/home/javi";
|
|
stateVersion = "25.05"; # Home manager version. Do not update carelessly
|
|
packages = with pkgs; [
|
|
# Basics
|
|
quickshell
|
|
|
|
# Terminal tools
|
|
ripgrep
|
|
fzf
|
|
bat
|
|
eza
|
|
jq
|
|
|
|
# Dev tools
|
|
jetbrains.datagrip
|
|
vscode
|
|
nixfmt # Nix formatting
|
|
pkgs.libsForQt5.full # QML formatting (for working on quickshell)
|
|
|
|
# System tools
|
|
btop
|
|
fastfetch
|
|
gnumake
|
|
|
|
# Langs
|
|
php
|
|
php84Packages.composer
|
|
laravel
|
|
go
|
|
nodejs_22
|
|
bun
|
|
];
|
|
|
|
sessionVariables = {
|
|
EDITOR = "code";
|
|
BROWSER = "brave";
|
|
TERMINAL = "kitty";
|
|
NVD_BACKEND = "wayland";
|
|
OZONE_PLATFORM = "wayland";
|
|
OZONE_PLATFORM_HINT = "auto";
|
|
XDG_CACHE_HOME = "${config.home.homeDirectory}/.cache";
|
|
XDG_CONFIG_HOME = "${config.home.homeDirectory}/.config";
|
|
XDG_DATA_HOME = "${config.home.homeDirectory}/.local/share";
|
|
XDG_STATE_HOME = "${config.home.homeDirectory}/.local/state";
|
|
};
|
|
};
|
|
|
|
# Programs home manager should manage
|
|
programs = {
|
|
btop = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
stylix = {
|
|
enable = true;
|
|
targets = {
|
|
btop.enable = true;
|
|
};
|
|
};
|
|
|
|
xdg = {
|
|
# Normal expected directories
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = true;
|
|
desktop = "${config.home.homeDirectory}/Desktop";
|
|
documents = "${config.home.homeDirectory}/Documents";
|
|
download = "${config.home.homeDirectory}/Downloads";
|
|
music = "${config.home.homeDirectory}/Music";
|
|
pictures = "${config.home.homeDirectory}/Pictures";
|
|
publicShare = "${config.home.homeDirectory}/Public";
|
|
templates = "${config.home.homeDirectory}/Templates";
|
|
videos = "${config.home.homeDirectory}/Videos";
|
|
};
|
|
|
|
# TODO: Move the http handler to a browser.nix
|
|
# # File/app associations
|
|
# mimeApps = {
|
|
# enable = true;
|
|
# defaultApplications = {
|
|
# "text/html" = "brave.desktop";
|
|
# "x-scheme-handler/http" = "brave.desktop";
|
|
# "x-scheme-handler/https" = "brave.desktop";
|
|
# "x-scheme-handler/about" = "brave.desktop";
|
|
# "x-scheme-handler/unknown" = "brave.desktop";
|
|
# "application/pdf" = "org.gnome.Evince.desktop";
|
|
# "text/plain" = "code.desktop";
|
|
# "application/json" = "code.desktop";
|
|
# "application/javascript" = "code.desktop";
|
|
# "text/x-php" = "code.desktop";
|
|
# };
|
|
# };
|
|
};
|
|
|
|
# Let Home Manager install and manage itself.
|
|
programs.home-manager.enable = true;
|
|
}
|