From f4859d06b9250ab61737b9c0a8f511fb74b7b635 Mon Sep 17 00:00:00 2001 From: kdam0 Date: Tue, 30 May 2023 15:24:27 -0400 Subject: updates to home profile --- .../.config/nixpkgs/per-user/kdam0-home/home.nix | 49 +++++++++++++++------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix index 77dabbe..82c36ca 100644 --- a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix +++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix @@ -2,16 +2,14 @@ { home.username = "kdam0"; home.homeDirectory = "/home/kdam0"; - - programs.home-manager.enable = true; - programs.zsh = { - enable = true; - defaultKeymap = "viins"; - initExtra = '' - source ${config.home.homeDirectory}/.p10k.zsh - bindkey '^ ' autosuggest-accept - ''; - shellAliases = { + home.sessionPath = [ + "$HOME/.config/nixpkgs/common/scripts" + ]; + home.sessionVariables = { + EDITOR = "nvim"; + TERM = "xterm-256color"; + }; + home.shellAliases = { l = "ls -l"; ll = "ls -al"; ".." = "cd .."; @@ -20,11 +18,22 @@ gst = "git status"; cdwl = "nvim ~/.config/nixpkgs/common/dwl_4/config.h"; chm = "nvim ~/.config/nixpkgs/per-user/kdam0-home/home.nix"; + clsp = "nvim ~/.config/nixpkgs/common/nvim/plugins/lspconfig.lua"; cnix = "nvim ~/.config/nixpkgs/per-user/kdam0-home/configuration.nix"; up = "sudo nixos-rebuild switch"; clean = "sudo nix-collect-garbage -d"; search = "nix search nixpkgs $@"; - }; + conf = "ranger ~/.config/nixpkgs/common/"; + }; + + programs.home-manager.enable = true; + programs.zsh = { + enable = true; + defaultKeymap = "viins"; + initExtra = '' + source ${config.home.homeDirectory}/.p10k.zsh + bindkey '^ ' autosuggest-accept + ''; zplug = { enable = true; plugins = [ @@ -40,6 +49,16 @@ prefix = "C-a"; terminal = "screen-256color"; keyMode = "vi"; + plugins = with pkgs; [ + tmuxPlugins.sensible + { + plugin = tmuxPlugins.resurrect; + extraConfig = "set -g @resurrect-strategy-nvim 'session'"; + } + tmuxPlugins.pain-control + tmuxPlugins.yank + ]; + sensibleOnTop = true; }; programs.git = { enable = true; @@ -214,12 +233,12 @@ }; bg-wallpaper = { Unit = { - Description = "Auto refresh wallpaper"; + Description = "Auto refresh wallpaper"; After = "network-online.target"; }; Service = { Type = "simple"; - ExecStart = "${config.home.homeDirectory}/bg.sh"; + ExecStart = "${config.home.homeDirectory}/.config/nixpkgs/common/scripts/walp"; TimeoutStopSec = "10"; KillMode = "process"; KillSignal = "SIGKILL"; @@ -245,8 +264,8 @@ systemd.user.startServices = true; # Source app specific configs - home.file."bg.sh".source = ../../common/bg.sh; - home.file."start.sh".source = ../../common/start.sh; + #home.file."bg.sh".source = ../../common/bg.sh; + #home.file."start.sh".source = ../../common/start.sh; home.file.".config/foot/foot.ini".source = ../../common/foot/foot.ini; home.file.".config/wofi/style.css".source = ../../common/wofi/style.css; home.file.".config/mako/config".source = ../../common/mako/config; -- cgit v1.2.3