From 56e2dba546bb2250c4c17fc66a0bc3b45d39a003 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Tue, 31 Dec 2024 05:49:54 -0500 Subject: [PATCH] 133 current 2024-12-31 05:49:48 25.05.20241217.d3c42f1 6.6.66 * --- home/home.nix | 35 +++++++---------------------------- home/programs/zsh/zshrc | 6 +++++- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/home/home.nix b/home/home.nix index 175b08f..7ceec22 100644 --- a/home/home.nix +++ b/home/home.nix @@ -1,10 +1,9 @@ { config, pkgs, + lib, ... }: { - # Home Manager needs a bit of information about you and the paths it should - # manage. home.username = "synchronous"; home.homeDirectory = "/home/synchronous"; imports = [ @@ -13,17 +12,14 @@ ./wallpapers/default.nix ]; - # 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 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.activation.copyScripts = lib.mkAfter '' + mkdir -p ~/.scripts + cp -r ${./scripts}/* ~/.scripts/ + chmod -R u+w ~/.scripts/ + ''; + home.stateVersion = "24.11"; # Please read the comment before changing. - # The home.packages option allows you to install Nix packages into your - # environment. home.packages = [ # # Adds the 'hello' command to your environment. It prints a friendly # # "Hello, world!" when run. @@ -58,28 +54,11 @@ # ''; }; - # Home Manager can also manage your environment variables through - # 'home.sessionVariables'. These will be explicitly sourced when using a - # shell provided by Home Manager. If you don't want to manage your shell - # through Home Manager then you have to manually source 'hm-session-vars.sh' - # located at either - # - # ~/.nix-profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # /etc/profiles/per-user/root/etc/profile.d/hm-session-vars.sh - # home.sessionVariables = { EDITOR = "nvim"; HOME = "/home/synchronous"; XDG_CACHE_HOME = "$HOME/.cache"; }; - # Let Home Manager install and manage itself. programs.home-manager.enable = true; } diff --git a/home/programs/zsh/zshrc b/home/programs/zsh/zshrc index 6c63985..9f1bcb3 100644 --- a/home/programs/zsh/zshrc +++ b/home/programs/zsh/zshrc @@ -113,7 +113,8 @@ alias pq="ping google.com -c 5" # alias sc="iwctl station wlan0 connect" ## directory control -alias ..="cd .." +alias ..="cd ../" +alias ../="cd ../" alias ...="cd ../.." alias .4="cd ../../.." @@ -182,6 +183,9 @@ alias termbin="sh /home/synchronous/.scripts/termbin/tb.sh" alias dlpaper="python /home/synchronous/.scripts/papers/dlpaper.py" alias backup_home="sh /home/synchronous/.scripts/backup/backup.sh" +# ====== NIXOS ALIASES + + # ------------------- fzf configuration [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh export FZF_DEFAULT_COMMAND='fdfind --type f'