diff options
| -rw-r--r-- | configuration.nix | 22 | ||||
| -rw-r--r-- | home.nix | 10 | ||||
| -rw-r--r-- | xmonad.hs | 2 | 
3 files changed, 18 insertions, 16 deletions
| 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 = { @@ -19,8 +19,8 @@ in {      stateVersion = "23.11";      packages = with pkgs; [        acpi -      binutils        bemenu +      binutils        feh        file        ghc @@ -32,6 +32,7 @@ in {        tmux        tree        vim +      xautolock        xmobar      ];      sessionVariables = @@ -147,6 +148,7 @@ in {        userEmail = "tom@tombarrett.xyz";        extraConfig = {          init.defaultBranch = "master"; +        pull.rebase = true;        };      };      gpg.enable = true; @@ -167,12 +169,6 @@ in {      enableContribAndExtras = true;    };    services = { -    xscreensaver = { -      enable = true; -      settings = { -        mode = "blank"; -      }; -    };      gpg-agent = {        enable = true;        enableSshSupport = true; @@ -68,6 +68,7 @@ main =                          , ("M-q", kill)                          , ("M-d", spawn $ "bemenu-run -p ' ' --cw 2")                          , ("M-r", spawn "xmonad --recompile && xmonad --restart") +                        , ("M-w", spawn "slock")                          , ("M-S-e", io exitSuccess)                          , ("M-j", windows W.focusDown)                          , ("M-k", windows W.focusUp) @@ -92,4 +93,5 @@ main =                                  (map show [1 .. 9])                  , startupHook = do                      spawnOnce "feh --bg-fill --no-fehbg --randomize /home/tom/src/nixos/wallpapers" +                    spawnOnce "xautolock -locker slock -time 1"                  } | 
