Swif.ai supports NixOS as part of its Linux MDM platform, enabling centralized device management, policy enforcement, and compliance monitoring.
Prerequisites
A supported NixOS installation.
Admin/root privileges on the device.
Enrollment Methods
You can integrate Swif.ai with NixOS using either:
Default NixOS Configuration
Flake-based Configuration
1. Default NixOS Configuration
Download
swifteam.zip
from the Swif console.Extract the file and move the
swifteam/
folder into/etc/nixos
.Import the module in
/etc/nixos/configuration.nix
:{
imports = [
...
./swifteam
];
...
services.swifteam = {
enable = true;
teamId = "";
name = "";
surname = "";
email = "";
};
}Rebuild NixOS:
sudo nixos-rebuild switch
2. Flake-based Configuration
Download
swifteam.zip
.Extract and place
swifteam/
into your flake directory.Import the module in your
nixosConfigurations
modules list. Please notenixRootPath
andflakeHostname
is required:{
...
outputs = {
nixosConfigurations.swifteamHostname = nixpkgs.lib.nixosSystem = {
modules = [
...
./swifteam
{
{
enable = true;
teamId = "";
name = "";
surname = "";
email = "";
nixRootPath = "/where/your/flake.nix/locate";
flakeHostname = "swifteamHostname";
};
}
];
};
};
}Rebuild the flake environment:
sudo nixos-rebuild switch --flake <nixRootPath>#<flakeHostname>
Verification
After rebuilding:
Run:
sudo systemctl status swif-agent.service
to verify the Swif agent installation.
Check the device’s status in Swif Console → Device Inventory.
Troubleshooting
Check system logs for
swifteam
service errors:journalctl -u swifteam
Re-run
nixos-rebuild
if configuration changes are made.