LnL7 / nix-darwin

nix modules for darwin
MIT License
3.19k stars 456 forks source link

Sorting in persistent-others #982

Open nklmilojevic opened 5 months ago

nklmilojevic commented 5 months ago

Is there a way to sort and set a content as fan/stack/whatever with nix-darwin? Each time I apply settings, it resets to defaults:

CleanShot 2024-06-22 at 12 05 32@2x

nklmilojevic commented 5 months ago

For example, if I apply it manually like this it allow setting options:


defaults write com.apple.dock persistent-others -array '<dict>
    <key>tile-data</key>
    <dict>
        <key>arrangement</key>
        <integer>2</integer>
        <key>displayas</key>
        <integer>1</integer>
        <key>file-data</key>
        <dict>
            <key>_CFURLString</key>
            <string>file:///Users/nkl/Documents</string>
            <key>_CFURLStringType</key>
            <integer>15</integer>
        </dict>
        <key>file-type</key>
        <integer>2</integer>
        <key>showas</key>
        <integer>1</integer>
    </dict>
    <key>tile-type</key>
    <string>directory-tile</string>
</dict>'