ref(nix): mkOptions

This commit is contained in:
Léana 江 2024-02-27 01:23:20 +01:00 committed by Léana 江
parent d98d30916b
commit 989d025f56
42 changed files with 80 additions and 78 deletions

76
nix/home/_/default.nix Normal file
View file

@ -0,0 +1,76 @@
{
pkgs,
unstable,
mypkgs,
config,
lib,
...
}: {
imports = [
./fish
./direnv
./atuin
./starship
./fzf
./git
./btop
./tmux
./neovim
./vim
./cmus
];
programs.home-manager.enable = true;
home = {
username = lib.mkDefault "leana";
homeDirectory = lib.mkDefault "/home/leana";
stateVersion = "23.11";
};
programs = {
ripgrep.enable = true;
gpg.enable = true;
};
home.packages = with pkgs;
[
# shell and script dependencies
figlet
gnused
stow
fd
vivid
gcc
rsync
# coreutils
uutils-coreutils-noprefix
parallel
# nix
alejandra
# utils
tree
tldr
irssi
]
++ lib.lists.optionals config.extraUtils.enable [
unstable.opam
unstable.cargo
hyperfine
watchexec
tea
tokei
gnumake
sd
]
++ lib.lists.optionals config.universityTools.enable [
mypkgs.logisim-evolution
mypkgs.necrolib
pkgs.rars
];
}