add flock as a requirement
This commit is contained in:
parent
0b88a87abe
commit
b62c29ec45
|
@ -15,7 +15,7 @@
|
|||
KERNEL=="nvme0n1p9|nvme0n1p1[0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block external-drive-mount@%k.service"
|
||||
'';
|
||||
systemd.services."external-drive-mount@" = {
|
||||
path = with pkgs; [jq coreutils udisks bash auto-mount];
|
||||
path = with pkgs; [jq coreutils udisks bash flock auto-mount];
|
||||
enable = true;
|
||||
description = "Mount External Drive on %i";
|
||||
script = "auto-mount add %i";
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
alejandra
|
||||
btrfs-progs
|
||||
efitools
|
||||
flock
|
||||
git
|
||||
git-filter-repo
|
||||
home-manager
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
jq,
|
||||
coreutils,
|
||||
udisks,
|
||||
flock,
|
||||
writeShellApplication,
|
||||
}:
|
||||
writeShellApplication
|
||||
|
@ -12,7 +13,7 @@ writeShellApplication
|
|||
|
||||
name = "auto-mount";
|
||||
|
||||
runtimeInputs = [jq coreutils udisks];
|
||||
runtimeInputs = [jq coreutils udisks flock];
|
||||
|
||||
text = ''
|
||||
set -euo pipefail
|
||||
|
|
Loading…
Reference in a new issue