Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: Check and fix NTFS filesystem before mounting

+18 -2
+18 -2
systems/x86_64-linux/desktop/default.nix
··· 1 - {lib, ...}: let 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: let 2 7 inherit (lib.lpchaim.nixos) getTraitModules; 3 8 inherit (lib.lpchaim.shared.defaults) name; 4 9 inherit (lib.lpchaim.storage.btrfs) mkStorage; ··· 40 45 "uid=1000" 41 46 "gid=1000" 42 47 "iocharset=utf8" 43 - "uhelper=udisks2" 48 + "x-gvfs-show" 44 49 ]; 50 + }; 51 + 52 + systemd.services.storage-fsck = let 53 + path = config.fileSystems."/run/media/${name.user}/storage".device; 54 + in { 55 + description = "Checks NTFS filesystem before mounting"; 56 + before = ["run-media-${name.user}-storage.mount"]; 57 + serviceConfig = { 58 + Type = "oneshot"; 59 + ExecStart = "${pkgs.ntfs3g}/bin/ntfsfix ${path} --clear-dirty"; 60 + }; 45 61 }; 46 62 }