Move sheldon to main config

Gürkan Gür 2022-07-15 16:38:41 +02:00
parent ed0f9b56cb
commit 31532e488e
3 changed files with 0 additions and 53 deletions

View File

@ -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;
};

View File

@ -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'

View File

@ -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;
};
};