mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-21 19:56:08 +01:00
101 lines
1.7 KiB
Nix
101 lines
1.7 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
rustVersion = (pkgs.rustChannelOf {channel = "stable";}).rust;
|
|
rsPlatform = pkgs.makeRustPlatform {
|
|
cargo = rustVersion;
|
|
rustc = rustVersion;
|
|
};
|
|
in {
|
|
home.packages = with pkgs; [
|
|
bitwarden-cli
|
|
nodePackages.vscode-json-languageserver
|
|
exa
|
|
python3
|
|
topgrade
|
|
rsync
|
|
fd
|
|
niv
|
|
bintools
|
|
httpie
|
|
sqlx-cli
|
|
codespell
|
|
ripgrep
|
|
file
|
|
jq
|
|
wget
|
|
cargo-flamegraph
|
|
linuxPackages.perf
|
|
unzip
|
|
tokei
|
|
gcc11
|
|
nix-alien
|
|
xdg-ninja
|
|
bc
|
|
kabalist_cli
|
|
comma
|
|
raclette
|
|
];
|
|
|
|
services = {
|
|
syncthing = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
home-manager = {
|
|
enable = true;
|
|
};
|
|
|
|
starship = {
|
|
enable = true;
|
|
};
|
|
|
|
bat = {
|
|
enable = true;
|
|
};
|
|
|
|
zoxide = {
|
|
enable = true;
|
|
};
|
|
};
|
|
home.file = {
|
|
"bin" = {
|
|
source = ./scripts;
|
|
recursive = true;
|
|
};
|
|
".zfunc" = {
|
|
source = ./zfunc;
|
|
recursive = true;
|
|
};
|
|
};
|
|
|
|
programs.zsh = {
|
|
initExtraBeforeCompInit = ''
|
|
fpath+="$HOME/.zfunc"
|
|
'';
|
|
shellAliases = {
|
|
new-direnv = "nix flake new -t github:nix-community/nix-direnv";
|
|
};
|
|
};
|
|
|
|
# This value determines the Home Manager release that your
|
|
# configuration is compatible with. This helps avoid breakage
|
|
# when a new Home Manager release introduces backwards
|
|
# incompatible changes.
|
|
#
|
|
# You can update Home Manager without changing this value. See
|
|
# the Home Manager release notes for a list of state version
|
|
# changes in each release.
|
|
home.stateVersion = "21.11";
|
|
}
|