Serenity/home/scripts/automount/default.nix
2024-12-26 21:13:21 +10:00

52 lines
1 KiB
Nix
Executable file

## https://mynixos.com/home-manager/options/home.file.%3Cname%3E
## https://nix-community.github.io/home-manager/options.xhtml#opt-home.file
## https://nix-community.github.io/home-manager/options.xhtml#opt-home.activation
{ disksPath, ... }:
{
# need option for `zfs set mountpoint=/myspecialfolder mypool`
home = {
## Directories to copy to /home/${username/}
file = {
## Path to automount disks to
"Disks" = {
source = ./Disks;
target = "${disksPath}";
recursive = true;
};
## (current) Flake path
#"flakes/nixdots" = {
#source = ../../../../nixdots;
#recursive = true;
#};
## (future) Flake path
#"SerenityOS" = {
#source = ../../../../nixdots;
#recursive = true;
#};
};
};
## Related services
services = {
## Udiskie
udiskie = {
enable = true;
automount = true; # automounts new disks
tray = "always";
notify = true; # enables the tray applet
#settings = {
#};
};
};
}