Compare commits
2 Commits
308206d1cc
...
c694c6ae4c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c694c6ae4c | ||
![]() |
f524aa168a |
2
nix/configuration/flake.lock
generated
2
nix/configuration/flake.lock
generated
@ -327,7 +327,7 @@
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-TFks1dvPwAXKQeePh9jmxj06ZfXArH1pN9yXVQWeL6w=",
|
||||
"narHash": "sha256-5DWw7GnwVZ98HUp/UUJcyUmmy9Bh/mcQB8MQQ0t3ZRo=",
|
||||
"path": "flakes/zsh-histdb",
|
||||
"type": "path"
|
||||
},
|
||||
|
@ -21,9 +21,16 @@ stdenv.mkDerivation {
|
||||
sha256 = "sha256-vtG1poaRVbfb/wKPChk1WpPgDq+7udLqLfYfLqap4Vg=";
|
||||
};
|
||||
buildInputs = [ sqlite ];
|
||||
phases = [ "installPhase" ];
|
||||
phases = [
|
||||
"installPhase"
|
||||
];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/zsh/plugins/zsh-histdb
|
||||
cp -r $src/histdb-* $src/*.zsh $src/db_migrations $out/share/zsh/plugins/zsh-histdb/
|
||||
runHook postInstall
|
||||
'';
|
||||
postInstall = ''
|
||||
substituteInPlace $out/share/zsh/plugins/zsh-histdb/sqlite-history.zsh $out/share/zsh/plugins/zsh-histdb/histdb-merge $out/share/zsh/plugins/zsh-histdb/histdb-migrate --replace-fail "sqlite3" "${sqlite}/bin/sqlite3"
|
||||
'';
|
||||
}
|
||||
|
@ -41,7 +41,8 @@ in
|
||||
mpv
|
||||
evince
|
||||
gimp
|
||||
imv # TODO: Maybe replace with https://github.com/artemsen/swayimg because imv is looking for a new maintainer
|
||||
# So far I prefer imv over swayimg because imv supports the 'p' hotkey to print the currently-viewed file to stdout (useful for pipelines) and afaik doesn't support the exec:// protocol which seems like a massive risk.
|
||||
imv
|
||||
];
|
||||
})
|
||||
(lib.mkIf (config.me.graphicsCardType == "amd" || config.me.graphicsCardType == "intel") {
|
||||
|
@ -64,7 +64,6 @@ in
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsh
|
||||
sqlite # TODO: can this be pulled into zsh-histdb automatically?
|
||||
];
|
||||
|
||||
users.users.talexander.shell = pkgs.zsh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user