flake/home/default.nix
Guanran Wang 81b0ee0ded
hosts: add socrates
- gh need to store credentials in hosts.yaml
2024-03-20 23:10:42 +08:00

58 lines
1.4 KiB
Nix

{
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 = [
inputs.self.homeManagerModules.default
inputs.nur.hmModules.nur
./applications/git
./applications/gpg
./applications/starship
./applications/eza
./applications/skim
./applications/bat
./applications/zoxide
./applications/ripgrep
./applications/wget
./applications/fd
./applications/atuin
./applications/zellij
./applications/fastfetch
./applications/tealdeer
];
home.shellAliases = {
".." = "cd ..";
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
};
}