# Mikrotik.nix: Declaratively manage RouterOS configuration

DevFeed: [Mikrotik.nix: Declaratively manage RouterOS configuration](<https://devfeed.tech/articles/mikrotik-nix-declaratively-manage-routeros-configuration-31353.md>)

Original publisher: [Read original article](<https://discourse.nixos.org/t/mikrotik-nix-declaratively-manage-routeros-configuration/78900>)

Author: nrabulinski

Published: 2026-07-13T00:14:48Z

Content type: article

Language: en

Sources: [Announcements - NixOS Discourse](<https://devfeed.tech/sources/announcements-nixos-discourse.md>)

Topics: [MikroTik](<https://devfeed.tech/topics/mikrotik.md>), [Nix](<https://devfeed.tech/topics/nix.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [announcements](<https://devfeed.tech/tags/announcements.md>), [commands](<https://devfeed.tech/tags/commands.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [feature](<https://devfeed.tech/tags/feature.md>), [forgejo](<https://devfeed.tech/tags/forgejo.md>), [github](<https://devfeed.tech/tags/github.md>), [mikrotik](<https://devfeed.tech/tags/mikrotik.md>)

## AI overview

The author announces mikrotik.nix, an early project for declaratively managing MikroTik RouterOS configuration with Nix. The project is being tested at home, remains rough around the edges, and uses the RouterOS API for activation and cleanup of resources managed by Nix.

## Source excerpt

Having just applied my home router configuration, I'm happy to announce my latest project: mikrotik.nix. As the README says, it's very early still, and I'm very much looking for feedback if someone is feeling adventurous enough to try it. So far I'm just converting the output of /export compact from my router to put into my config repo, fixing whatever comes up, and extending the feature-set as I go. The canonical repo can be found here: nrabulinski/mikrotik.nix - Forgejo: Beyond coding. We Forge. and this is also what I recommend depending on, as it has higher uptime than GitHub. There is also a GitHub mirror though, for the purpose of creating issues and PRs GitHub - nrabulinski/mikrotik.nix: Mirror of https://git.rab.lol/nrabulinski/mikrotik.nix - GitHub And finally here's the commit where I add mikrotik.nix to my config: net/home/router: init - fc9c489c6d - nrabulinski/settei - Forgejo: Beyond coding. We Forge. 3 posts - 2 participants Read full topic