From dad139cd5b4d575d29aa5b3ace3003fc51332c10 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Mon, 25 Sep 2023 03:25:31 -0700 Subject: init --- home.nix | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 home.nix (limited to 'home.nix') diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..7de67a9 --- /dev/null +++ b/home.nix @@ -0,0 +1,79 @@ +{ config, pkgs, ... }: + +{ + home.username = "shubh"; + home.homeDirectory = "/home/shubh"; + + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "23.05"; + + home.packages = with pkgs; [ + git + unzip + wget + gnupg + pinentry + wl-clipboard + pass + tmux + fzf + firefox + libreoffice-qt + # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) + ]; + + programs.home-manager.enable = true; + programs.zsh = { + enable = true; + enableCompletion = true; + shellAliases = { + ll = "ls -l"; + v = "nvim"; + o = "xdg-open"; + t = "tmux"; + update = "sudo nixos-rebuild switch --flake ~/nix"; + }; + history = { + size = 10000; + path = "${config.xdg.dataHome}/zsh/history"; + }; + oh-my-zsh = { + enable = true; + plugins = [ "git" "kubectl" "sudo" ]; + theme = "robbyrussell"; + }; + }; + programs.fzf = { + enable = true; + enableZshIntegration = true; + defaultOptions = [ "--height 40%" "--layout=reverse" "--border" ]; + }; + programs.git = { + enable = true; + userEmail = "me@ubh.sh"; + userName = "Shubham Saini"; + signing = { + key = "E0404DDE4BCF9DB5"; + signByDefault = true; + }; + }; + + services.gpg-agent = { + enable = true; + pinentryFlavor = "qt"; + }; + + xdg = { + userDirs = { + enable = true; + desktop = "\$HOME/desktop"; + documents = "\$HOME/docs"; + download = "\$HOME/downloads"; + pictures = "\$HOME/pics"; + music = "\$HOME/music"; + videos = "\$HOME/vids"; + }; + }; +} -- cgit v1.2.3