summaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2022-12-14 21:22:12 +0100
committerMike Vink <mike1994vink@gmail.com>2022-12-14 21:22:12 +0100
commitdc480e6c9c3d164e4ddcfa0d46c8a90b96c7bbf0 (patch)
treeb2488bdb16d0056cf6fa4c6b05f237be62f8cb29 /home.nix
parenta24fa6d16a9bc2021817cb68fddc44f88a5d7cb8 (diff)
docker and some aliases
Diffstat (limited to 'home.nix')
-rw-r--r--home.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/home.nix b/home.nix
index 7f2567a..6ab3af2 100644
--- a/home.nix
+++ b/home.nix
@@ -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"