Comments (4)
When using the home-manager module you need to create the /persistent/home/<username>
directory and give it appropriate permissions. The module can't do it, since it's running as your user, not root.
from impermanence.
This is because your temporary home directory has already been populated; i.e. one of the directories you've listed in your config has already been created by a program and files have been put in it. You either have to move the offending directory out of the way or reboot (which is probably the easier and safer option). The reason the error message is coming from fuse is that we're using bindfs to set up the bind mounts.
from impermanence.
When using the home-manager module you need to create the
/persistent/home/<username>
directory and give it appropriate permissions. The module can't do it, since it's running as your user, not root.
Thanks for the explanation! I did that
$ ls -l /persistent/
total 50
drwxr-xr-x 6 root root 7 Dec 15 09:29 etc
drwxr-xr-x 3 root root 3 Dec 16 10:49 home
drwxr-xr-x 4 root root 4 Dec 11 14:27 var
$ ls -l /persistent/home/
total 17
drwxr-xr-x 3 a12l users 3 Dec 16 11:00 a12l
But now when I try to start up the Home Manager service I get another problem.
$ systemctl status home-manager-a12l.service
× home-manager-a12l.service - Home Manager environment for a12l
Loaded: loaded (/etc/systemd/system/home-manager-a12l.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-12-16 11:09:22 CET; 2min 24s ago
Process: 1743 ExecStart=/nix/store/k7q69xknc9vg8ikwpf8ff5lbawb27pn1-hm-setup-env /nix/store/p9k6zsqj6z56idmjd37lzlzqvxxsiccx-home-manager-generation (code=exited,>
Main PID: 1743 (code=exited, status=1/FAILURE)
IP: 0B in, 824B out
CPU: 233ms
Dec 16 11:09:22 mobile-p-ep1 hm-activate-a12l[1743]: Activating checkFilesChanged
Dec 16 11:09:22 mobile-p-ep1 hm-activate-a12l[1743]: Activating checkLinkTargets
Dec 16 11:09:22 mobile-p-ep1 hm-activate-a12l[1743]: Activating unmountPersistentStoragePaths
Dec 16 11:09:22 mobile-p-ep1 hm-activate-a12l[1743]: Activating createAndMountPersistentStoragePaths
Dec 16 11:09:22 mobile-p-ep1 hm-activate-a12l[2247]: fuse: mountpoint is not empty
Dec 16 11:09:22 mobile-p-ep1 hm-activate-a12l[2247]: fuse: if you are sure this is safe, use the 'nonempty' mount option
Dec 16 11:09:22 mobile-p-ep1 systemd[1]: home-manager-a12l.service: Main process exited, code=exited, status=1/FAILURE
Dec 16 11:09:22 mobile-p-ep1 systemd[1]: home-manager-a12l.service: Failed with result 'exit-code'.
Dec 16 11:09:22 mobile-p-ep1 systemd[1]: Failed to start Home Manager environment for a12l.
Dec 16 11:09:22 mobile-p-ep1 systemd[1]: home-manager-a12l.service: Consumed 233ms CPU time, received 0B IP traffic, sent 824B IP traffic.
I don't understand what the error log says.
from impermanence.
This is because your temporary home directory has already been populated; i.e. one of the directories you've listed in your config has already been created by a program and files have been put in it. You either have to move the offending directory out of the way or reboot (which is probably the easier and safer option). The reason the error message is coming from fuse is that we're using bindfs to set up the bind mounts.
Thanks for the explanation!
I was able to find files by commenting out every directory and file in the home.persistence.<path>.directories
and in the home.persistence.<path>.files
list; and the uncommenting them line-for-line while switching config between each step.
from impermanence.
Related Issues (20)
- `user.*.directories` assertion is displaying incorrectly`
- Issues with bindfs: no entry in /etc/mtab HOT 1
- Persisting Steam breaks any game within it and also fails shutdown HOT 4
- Boot does not revoke chmod permissions HOT 1
- [REQUEST] Declare `something.impermanence.enable` option for integration with other modules and easy way to disable impermanence HOT 1
- Handle bind mount of directory that already has content HOT 2
- `nixos-rebuild` fails due to the symlink, Impermanence created
- Best practice to split configuration HOT 1
- missing `x-gvfs-hidein` in mount
- Strategies to deal with `renameat(3)` on persisted files HOT 1
- Infinite recursion error when persisting anything in /var/ HOT 1
- Symlinks created via the home-manager module are broken HOT 2
- The importance of persisting `/var/lib/nixos` is not documented HOT 2
- Cannot use `users.users` without infinite recursion
- Empty list for home.persistence directories does not build HOT 3
- home-manager module cannot mount files to /persist. permission denied. HOT 2
- Root cannot access directories persisted with home-manager HOT 1
- Opt-in Mirror Mode
- Impermanence issues with SSH when provisioning with nixos-anywhere + disko + flakes HOT 1
- Systemd unit name is invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impermanence.