Skip to content

Support custom config paths and automatic backup management #32

Description

@pirate-boop

It would be great to support custom or dynamic config paths instead of only using the default "~/.config/niri/config.kdl".

This would help users who:

  • use Home Manager / NixOS
  • store configs inside dotfiles repositories
  • use symlinks
  • maintain multiple Niri profiles/configs

For example, some users may store their config in locations like:
"~/nixos/.dotfiles/home/.config/niri/config.kdl"

A configurable path option or file picker would make Nirimod much more flexible for these setups.

It could also be very useful to add automatic backup support before saving changes.

Suggested behavior:

  • create a backup before every save
  • store backups in the same directory as the selected config
  • support numbered or timestamp-based backups
  • optionally allow setting a backup limit

Example backup names:

  • "config.kdl.1.bak"
  • "config.kdl.2.bak"
  • "config.kdl.3.bak"

or timestamp-based naming
Example timestamp format:
"config.kdl.16-05-2026_18-42-11.bak"

(day-month-year_hour-minute-second)

If a backup limit is configured (for example 10 backups), the oldest backup could be automatically removed when the limit is exceeded.

If no limit is set, backups could remain unlimited.

It would also be great to expose backup restore functionality directly inside the Nirimod UI, so users can easily rollback broken configs after experimenting with layouts or settings.

This would make Nirimod much safer and more convenient for advanced setups and configuration-heavy workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions