Commit graph

10 commits

Author SHA1 Message Date
talyz
96fc5494dc
nixos: Manage files using systemd services
Manage files by creating a systemd oneshot service for each file. The
service links or bind mounts the file as appropriate on start and
removes the link or unmounts it when stopped. Whether a symlink or
bind mount is used is determined by if the target exists - if it does,
it's bind mounted, otherwise symlinked. To make sure files are
available early enough, also run the start portion in the activation
script.

This lifts the restriction on files being placed in `/etc` and should
finally close #1.
2021-11-17 09:12:36 +01:00
talyz
ce77ed9bd0
README: Add note about using home-manager as a NixOS module
Fixes #52.
2021-10-29 16:20:58 +02:00
talyz
4d655d7842
home-manager: Add allowOther option to let other users read bind mounts
NixOS defaults to not letting fuse mounts be allowed to let other
users read their contents. `bindfs` wants to give other users access
and is therefore normally run with `--no-allow-other` to not throw an
error.

Giving other users, mainly `root`, access to the bind mounts is,
however, useful and works fine when

programs.fuse.userAllowOther = true;

is declared in `configuration.nix`. This adds an option to choose
whether to give other users access or not. It also prompts the user to
set the `allowOther` attribute with a link to the documentation.
2021-01-27 12:35:27 +01:00
talyz
77302d9381
home-manager: Document options, update readme 2021-01-25 00:15:36 +01:00
talyz
619b089f58
README, home-manager: Note that the mounts are visible in /etc/mtab 2020-07-24 13:41:27 +02:00
Cole Helbling
ff77093186 README: add links to further reading 2020-06-09 23:08:50 -07:00
Bernardo Meurer
01f9461657
readme: fix nix source examples 2020-06-06 21:58:23 -07:00
talyz
bdec862a14
README: Detail module usage 2020-06-05 19:36:42 +02:00
Elis Hirwing
aa68a1d069
Add a block with a description about the name from wikipedia 2020-06-04 21:50:33 +02:00
Elis Hirwing
7c5f639143
Add a small description 2020-06-04 21:47:55 +02:00