diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2022-12-14 21:22:12 +0100 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2022-12-14 21:22:12 +0100 |
| commit | dc480e6c9c3d164e4ddcfa0d46c8a90b96c7bbf0 (patch) | |
| tree | b2488bdb16d0056cf6fa4c6b05f237be62f8cb29 /home.nix | |
| parent | a24fa6d16a9bc2021817cb68fddc44f88a5d7cb8 (diff) | |
docker and some aliases
Diffstat (limited to 'home.nix')
| -rw-r--r-- | home.nix | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -52,6 +52,11 @@ programs.bash = { enable = true; shellAliases = { + s = "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/flake#"; + h = "home-manager switch --flake ${config.home.homeDirectory}/flake#${config.home.username}"; + V = "xrandr --output HDMI1 --auto --output eDP1 --off"; + v = "xrandr --output eDP1 --auto --output HDMI1 --off"; + vV = "xrandr --output eDP1 --auto --output HDMI1 --off"; newflake = "nix flake new -t github:nix-community/nix-direnv "; }; }; @@ -93,7 +98,11 @@ neovim-symlink = home-manager.lib.hm.dag.entryAfter ["writeBoundary"] '' NEOVIM_CONFIG="${config.home.homeDirectory}/neovim" XDG_CONFIG_HOME_NVIM="${config.xdg.configHome}/nvim" - $DRY_RUN_CMD ln -sf $NEOVIM_CONFIG $XDG_CONFIG_HOME_NVIM + if [ -L $XDG_CONFIG_HOME_NVIM ] && [ -e $XDG_CONFIG_HOME_NVIM ]; then + $DRY_RUN_CMD echo "neovim linked" + else + $DRY_RUN_CMD ln -s $NEOVIM_CONFIG $XDG_CONFIG_HOME_NVIM + fi ''; clearHotpotCache = home-manager.lib.hm.dag.entryAfter ["writeBoundary"] '' HOTPOT_CACHE="${config.xdg.cacheHome}/nvim/hotpot" |
