Closed a12l closed 2 years ago
It seems that it creates a directory in ~/.config
with the quotes.
$ ls -l ~/.config/|rg Mullvad
drwxr-xr-x 2 a12l users 3 Dec 30 13:58 "Mullvad VPN"
drwx------ 10 a12l users 16 Dec 30 14:02 Mullvad VPN
$ ls -l ~/.config/\"Mullvad\ VPN\"/
total 1
lrwxrwxrwx 1 a12l users 102 Dec 30 13:58 gui_settings.json -> '/nix/store/5h1dxv8vkhw36ayn5ya81cq547wszym8-home-manager-files/.config/"Mullvad VPN"/gui_settings.json'
I've added
.config/Mullvad VPN/gui_settings.json
tohome.persistence."/persistent/home/a12l".files
, I.e.,home.persistence."/persistent/home/a12l".files = [ ".config/Mullvad VPN/gui_settings.json" ];
. Impermanence creates a broken symlink. It creates an empty directoryMullvad
in my persistent storage, and an emptyVPN
directory in my home directory. The configuration builds without any error messages.If I add the directory with quotes, I.e.,
home.persistence."/persistent/home/a12l".files = [ ".config/Mullvad VPN/gui_settings.json" ];
, a directory with the correct name is created in/persistent/home/a12l/.config/
, but the directory is empty and no symlink is createdI haven't tested having spaces in
environment.persistence."/persistent".{directories | files}
, or inhome.persistence."/persistent/home/a12l".directories
.