From 28d1d1540b5664e815184d22d16f9629c3e1ec87 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Tue, 24 Nov 2020 23:04:53 +0300 Subject: [PATCH] temp --- hosts/lungmen.nix | 1 + users/patriot/home.nix | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hosts/lungmen.nix b/hosts/lungmen.nix index e717452..16cd4a1 100644 --- a/hosts/lungmen.nix +++ b/hosts/lungmen.nix @@ -149,6 +149,7 @@ in { environment = { systemPackages = [ btrfsDiff ]; + pathsToLink = [ "/share/zsh" ]; persistence."/persist" = { directories = [ "/etc/nixos" ]; files = [ "/etc/machine-id" ]; diff --git a/users/patriot/home.nix b/users/patriot/home.nix index 4d15bc7..403c74b 100644 --- a/users/patriot/home.nix +++ b/users/patriot/home.nix @@ -192,7 +192,7 @@ in { inherit font; }; sway = { - enable = false; + enable = true; extraSessionCommands = '' export SDL_VIDEODRIVER=wayland # needs qt5.qtwayland in systemPackages @@ -261,7 +261,7 @@ in { }; output = { "*" = { - bg = config.home.homeDirectory + "wallpaper.png" + " fill"; + bg = config.home.homeDirectory + "/wallpaper.png" + " fill"; }; }; }; @@ -387,7 +387,7 @@ in { # xdg compliant dotDir = ".config/zsh"; history.path = ".local/share/zsh/history"; - loginExtra = '' + envExtra = '' export SDL_VIDEODRIVER=wayland # needs qt5.qtwayland in systemPackages export QT_QPA_PLATFORM=wayland @@ -395,11 +395,17 @@ in { # Fix for some Java AWT applications (e.g. Android Studio), # use this if they aren't displayed properly: export _JAVA_AWT_WM_NONREPARENTING=1 - + ''; + loginExtra = '' if [ "$(${pkgs.coreutils}/bin/tty)" = "/dev/tty1" ]; then exec ${pkgBin "hikari"} fi ''; + initExtra = '' + bindkey "$terminfo[kRIT5]" forward-word + bindkey "$terminfo[kLFT5]" backward-word + zstyle ':completion:*' menu select + ''; shellAliases = nixosConfig.environment.shellAliases // { rember = '' ${pkgs.kakoune-unwrapped}/bin/kak -e "try %(gtd-jump-today)" "${config.home.homeDirectory}/rember/stuff$(date '+_%m_%Y').gtd"