Skip to content

Commit

Permalink
home-manager/remap-keys: go back to install
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed May 23, 2024
1 parent ae14f97 commit 05fdf43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home-manager/darwin/remap-keys.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ in
];
}}"
destination="/Library/LaunchDaemons/com.nix.remapkeys.${cfg.vendorID}-${cfg.productID}.plist"
if [[ ! -L "$destination" ]]; then
/usr/bin/sudo ${lib.getExe' pkgs.coreutils "ln"} -s "$source" "$destination"
/usr/bin/sudo /bin/launchctl load -w "$destination"
if ! ${lib.getExe' pkgs.diffutils "diff"} "$source" "$destination"; then
$DRY_RUN_CMD /usr/bin/sudo ${lib.getExe' pkgs.coreutils "install"} -m644 "$source" "$destination"
$DRY_RUN_CMD /usr/bin/sudo /bin/launchctl load -w "$destination"
fi
'';
};
Expand Down

0 comments on commit 05fdf43

Please sign in to comment.