Archived
1
0
This repository has been archived on 2024-01-21. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/modules/sheldon.nix
2023-04-21 16:07:52 +02:00

57 lines
1.5 KiB
Nix

{ pkgs, config, lib, ... }:
let
sheldonConfig = "/etc/sheldon.toml";
in
{
environment = {
variables = {
SHELDON_CONFIG_FILE = sheldonConfig;
};
etc."sheldon.toml".text = ''
shell = "zsh"
[plugins]
[plugins.zsh-defer]
github = "romkatv/zsh-defer"
[templates]
defer = "{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}"
[plugins.zsh-term-title]
github = 'pawel-slowik/zsh-term-title'
[plugins.zsh-history-substring-search]
github = 'zsh-users/zsh-history-substring-search'
[plugins.gitstatus]
github = 'romkatv/gitstatus'
use = ['gitstatus.prompt.zsh']
[plugins.zsh-syntax-highlighting]
github = "zsh-users/zsh-syntax-highlighting"
apply = ["defer"]
[plugins.ls-colors]
github = "trapd00r/LS_COLORS"
apply = ["defer"]
[plugins.pass]
remote = 'https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/pass/_pass'
apply = ["defer"]
[plugins.nix-zsh-completions]
github = 'spwhitt/nix-zsh-completions'
[plugins.zsh-manydots-magic]
remote = 'https://raw.githubusercontent.com/knu/zsh-manydots-magic/master/manydots-magic'
apply = ["defer"]
[plugins.compinit]
inline = 'autoload -Uz compinit && compinit'
'';
};
system.userActivationScripts.sheldonActivate.text = "SHELDON_CONFIG_FILE=${sheldonConfig} SHELDON_DATA_DIR=~/.local/share/sheldon ${pkgs.sheldon}/bin/sheldon lock --update";
}
# vim: set ts=2 sw=2 tw=0 et :