mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 05:12:34 +02:00
fix bug with caelestia conf being read-only
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
@@ -56,6 +57,16 @@
|
||||
"caelestia scheme set -n custom"
|
||||
];
|
||||
|
||||
# shell.json is managed by home-manager (read-only symlink) but caelestia
|
||||
# needs to write to it at runtime: replace the symlink with a mutable copy
|
||||
home.activation.caelestiaWritableShellConfig = lib.hm.dag.entryAfter ["linkGeneration"] ''
|
||||
if [ -L "$HOME/.config/caelestia/shell.json" ]; then
|
||||
$DRY_RUN_CMD cp --remove-destination \
|
||||
"$(readlink -f "$HOME/.config/caelestia/shell.json")" \
|
||||
"$HOME/.config/caelestia/shell.json"
|
||||
fi
|
||||
'';
|
||||
|
||||
services.cliphist = {
|
||||
enable = true;
|
||||
allowImages = true;
|
||||
|
||||
Reference in New Issue
Block a user