util-linux might be better

This commit is contained in:
Lillian Violet 2024-03-20 23:44:34 +01:00
parent b62c29ec45
commit f4193b5ef6
3 changed files with 3 additions and 4 deletions

View file

@ -15,7 +15,7 @@
KERNEL=="nvme0n1p9|nvme0n1p1[0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block external-drive-mount@%k.service" 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@" = { systemd.services."external-drive-mount@" = {
path = with pkgs; [jq coreutils udisks bash flock auto-mount]; path = with pkgs; [jq coreutils udisks bash util-linux auto-mount];
enable = true; enable = true;
description = "Mount External Drive on %i"; description = "Mount External Drive on %i";
script = "auto-mount add %i"; script = "auto-mount add %i";

View file

@ -55,7 +55,6 @@
alejandra alejandra
btrfs-progs btrfs-progs
efitools efitools
flock
git git
git-filter-repo git-filter-repo
home-manager home-manager

View file

@ -4,7 +4,7 @@
jq, jq,
coreutils, coreutils,
udisks, udisks,
flock, util-linux,
writeShellApplication, writeShellApplication,
}: }:
writeShellApplication writeShellApplication
@ -13,7 +13,7 @@ writeShellApplication
name = "auto-mount"; name = "auto-mount";
runtimeInputs = [jq coreutils udisks flock]; runtimeInputs = [jq coreutils udisks util-linux];
text = '' text = ''
set -euo pipefail set -euo pipefail