Browse Source

Move sheldon to main config

master
Gürkan Gür 5 months ago
parent
commit
31532e488e
  1. 14
      home.nix
  2. 37
      modules/config_files/sheldon-plugins
  3. 2
      modules/files.nix

14
home.nix

@ -16,20 +16,6 @@ with import <home-manager/modules/lib/dag.nix> { inherit lib; };
find ~ -name "*.FUCK" -print -delete
'';
# XXX: Managing plugins via sheldon, since nix-way is basically
# "Oh let's write the hashsums of every f-king plugin's every version we use"
home.activation.updateSheldon = dagEntryAfter ["writeBoundary"] ''
#!/usr/bin/env zsh
if [ ! -e /tmp/.sheldon_updated ] || [ `stat --format=%Y /tmp/.sheldon_updated` -le $(( `date +%s` - 86400 )) ]; then
echo "Updating sheldon plugins.."
sheldon lock --update || echo "Had problems, ignoring!"
touch /tmp/.sheldon_updated
else
echo "Skipping sheldon update, recently done"
fi
'';
programs.home-manager = {
enable = true;
};

37
modules/config_files/sheldon-plugins

@ -1,37 +0,0 @@
shell = "zsh"
[plugins]
[plugins.zsh-defer]
github = "romkatv/zsh-defer"
[templates]
defer = { value = 'zsh-defer source "{{ file }}"', each = true }
[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.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'

2
modules/files.nix

@ -28,8 +28,6 @@ in
"extrakto/extrakto.conf".source = ./config_files/extrakto.conf;
"sheldon/plugins.toml".source = ./config_files/sheldon-plugins;
"geany/filedefs/filetypes.common".source = ./config_files/geany_styling;
};
};

Loading…
Cancel
Save