a
This commit is contained in:
@@ -24,9 +24,20 @@
|
||||
'';
|
||||
};
|
||||
|
||||
system.activationScripts.xdgDesktopPortal = {
|
||||
system.activationScripts.linkDotConfigChildren = {
|
||||
text = ''
|
||||
echo "${pkgs.xdg-desktop-portal-gtk}/libexec/xdg-desktop-portal-gtk" > /.xdg.sh
|
||||
config_root=/etc/nixos/config
|
||||
target_root=/home/kris/.config
|
||||
|
||||
mkdir -p "$target_root"
|
||||
|
||||
for src in "$config_root"/*; do
|
||||
name=$(basename "$src")
|
||||
dst="$target_root/$name"
|
||||
rm -rf "$dst"
|
||||
ln -s "$src" "$dst"
|
||||
chown -h kris:users "$dst"
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user