Skip to content

auto-upgrade 🔹

Set up automatic upgrades

Deprecated

The auto-upgrade module is deprecated.*

Use 'clanServices/auto-upgrade' or a similar successor instead

Categories

System

Whether to periodically upgrade NixOS to the latest version. If enabled, a systemd timer will run nixos-rebuild switch --upgrade once a day.

Usage via Inventory

Roles

This module can be used via predefined roles

  • default

Every role has its own configuration options, which are each listed below.

For more information, see the inventory guide.

Example

For example the admin module adds the following options globally to all machines where it is used.

clan.admin.allowedkeys

clan-core.lib.clan {
    inventory.services = {
        admin.me = {
            roles.default.machines = [ "jon" ];
            config.allowedkeys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..." ];
        };
    };
};

Options of default role

The following options are available when using the default role.

flake

Flake reference

Type: string

Declared in: clanModules/auto-upgrade/roles/default.nix

Usage via Nix

This module cannot be imported directly in your nixos configuration.