Wrap macos-only config behind platform detection
This commit is contained in:
parent
d03e84b14a
commit
6691d3c037
6 changed files with 85 additions and 61 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Rsync exclude patterns for common files and directories
|
||||
|
|
@ -40,9 +40,11 @@
|
|||
--partial
|
||||
--partial-dir=.rsync-partial
|
||||
|
||||
# Preserve extended attributes and ACLs (macOS)
|
||||
--extended-attributes
|
||||
--acls
|
||||
${lib.optionalString pkgs.stdenv.isDarwin ''
|
||||
# Preserve extended attributes and ACLs (macOS)
|
||||
--extended-attributes
|
||||
--acls
|
||||
''}
|
||||
|
||||
# Network optimization
|
||||
--compress
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue