From 63badd58cf19fe6f4b823fee53a4d6f6c2187e74 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Sun, 12 May 2024 14:16:27 +0200 Subject: screensaver --- configuration.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index dedcd96..28c5d7d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -21,15 +21,19 @@ shell = pkgs.zsh; }; - programs.zsh = { - enable = true; - promptInit = '' - autoload -Uz vcs_info - precmd() { vcs_info } - zstyle ':vcs_info:git:*' formats '|%F{3}%b%f' - setopt PROMPT_SUBST - PROMPT='<%F{2}%n%f@%F{6}%m%f|%F{5}%~%f''${vcs_info_msg_0_}%f> ' - ''; + programs = { + slock.enable = true; + zsh = { + enable = true; + promptInit = '' + autoload -Uz vcs_info + precmd() { vcs_info } + zstyle ':vcs_info:git:*' formats '|%F{3}%b%f' + setopt PROMPT_SUBST + PROMPT='<%F{2}%n%f@%F{6}%m%f|%F{5}%~%f''${vcs_info_msg_0_}%f> ' + bindkey '^f' end-of-line + ''; + }; }; fonts.packages = [pkgs.hermit]; services = { -- cgit v1.2.3