nixos/home/common.nix

82 lines
1.4 KiB
Nix

{ pkgs, ... }:
{
imports = [
./modules/thunderbird
./modules/nethack
./modules/firefox
./modules/neovim
./modules/emacs
];
programs = {
home-manager.enable = true;
fastfetch.enable = true;
htop.enable = true;
bash = {
enable = true;
historyControl = [ "ignoreboth" ];
};
git = {
enable = true;
userName = "xezo360hye";
userEmail = "xezo360hye@gmail.com";
extraConfig = {
init.defaultBranch = "master";
url."https://github.com/".insteadOf = [ "gh:" "github:" ];
url."https://git.psf.lt/".insteadOf = [ "psf:" "gitea:" ];
};
};
mpv = {
enable = true;
scripts = with pkgs.mpvScripts; [
mpris
];
};
};
nixpkgs.config.allowUnfree = true;
home = {
packages = with pkgs; let
sent' = sent.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ cairo ];
patches = [
./resources/patches/sent-pdf.diff
];
});
in [
texlive.combined.scheme-full
telegram-desktop
libreoffice-qt6
libqalculate
arduino-cli
gimp
krita
inkscape
ani-cli
ytfzf
cpufrequtils
steam-run
sent'
];
sessionVariables = {
ANI_CLI_PLAYER = "mpv";
};
file = {
".config/nixpkgs/config.nix".text = "{ allowUnfree = true; }";
};
};
}