flake/home/default.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

{
2024-02-06 10:08:36 +00:00
inputs,
pkgs,
config,
lib,
...
}: {
home = {
# for nix-on-droid
username = lib.mkDefault "guanranwang";
homeDirectory =
lib.mkDefault
(
if pkgs.stdenv.hostPlatform.isDarwin
then "/Users/${config.home.username}"
else "/home/${config.home.username}"
);
# 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.
stateVersion = "23.05";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Default applications
imports = [
2024-02-06 10:08:36 +00:00
inputs.self.homeManagerModules.default
2024-02-27 07:38:36 +00:00
inputs.nur.hmModules.nur
2024-03-26 08:49:35 +00:00
./applications/atuin
2024-04-22 18:35:50 +00:00
./applications/bash
2024-03-26 08:49:35 +00:00
./applications/bat
./applications/eza
./applications/fastfetch
2024-04-22 18:35:50 +00:00
./applications/fish
./applications/git
2024-01-01 13:31:28 +00:00
./applications/gpg
./applications/skim
2024-03-26 08:49:35 +00:00
./applications/starship
./applications/tealdeer
2024-03-26 08:49:35 +00:00
./applications/zellij
];
2024-03-26 08:49:35 +00:00
programs.ripgrep.enable = true;
programs.zoxide.enable = true;
home.packages = with pkgs; [fd] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs; [trashy]);
home.shellAliases = {
".." = "cd ..";
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
};
}