---
title: "Installing Authelia on nixOS Latest - CloudBlast"
description: "Installing Authelia on nixOS Latest"
url: "https://cloudblast.io/he/article/Installing-Authelia-on-nixOS-Latest"
language: "he-IL"
---

בלוג

# Installing Authelia on nixOS Latest

יתרה חינם של 5€ בהרשמה

הירשמו ל-CloudBlast וקבלו קרדיט ענן בסך 5€ לפריסת שרתי ה-VPS שלכם

[קבלו 5€ חינם](https://console.cloudblast.io/auth/login?ref=2)

-   [חזרה](https://cloudblast.io/he)
-   [כל המאמרים](https://cloudblast.io/he/blog)

2024-09-22

### Installing Authelia on nixOS Latest

tutorials

Authelia is a powerful and flexible authentication server that provides secure authentication for your web applications. In this tutorial, we will show you how to install and configure Authelia on nixOS latest.

**Prerequisites**

Before we proceed, let's ensure that you have the following prerequisites:

-   A computer running nixOS latest
-   A non-root user account with sudo privileges
-   A basic understanding of command line

**Step 1: Install and Configure Authelia**

1.  First, let's install the Authelia binary package from the nixpkgs repository using the following command:

    > sudo nix-env -i authelia

2.  After installation, create the configuration file for Authelia by running the following command:

    > sudo mkdir -p /etc/authelia

    > sudo nano /etc/authelia/configuration.yml

    Paste the following configuration into the file:

    > listen\_address: 0.0.0.0:9091
    > log\_level: info
    > jwt\_secret: my-jwt-secret
    > ldap:
    >   url: ldaps://example.com:636
    >   user\_dn: cn=admin,dc=example,dc=com
    >   user\_password: my-secret-bind-password
    >   base\_dn: 'ou=users,dc=example,dc=com'
    >   filter: (uid={0})
    > session:
    >   domain: example.com
    >   name: AUTH\_SESSION\_ID
    >   expiration: 3600s
    > storage:
    >   mysql:
    >     host: localhost:3306
    >     username: my-mysql-user
    >     password: my-mysql-password
    >     database: authelia
    > notifiers:
    >   smtp:
    >     enabled: true
    >     host: smtp.example.com:587
    >     from: noreply@example.com
    >     username: smtp-user
    >     password: smtp-password

    **Note**: In this example, we are using LDAP for user authentication, MySQL for storing user data, and SMTP for sending email notifications. You may replace these with your preferred options.

3.  Next, let's create a service for Authelia by running the following command:

    > sudo nano /etc/nixos/configuration.nix

    Add the following code to the end of the configuration file:

    > services.authelia = {
    >   enable = true;
    >   configFile = "/etc/authelia/configuration.yml";
    >   package.enable = true;
    > };

4.  Save and close the configuration file.

5.  Apply the changes by running the following command:

    > sudo nixos-rebuild switch

    This will rebuild and activate the nixOS system with the new Authelia service.

**Step 2: Test Authelia**

1.  You can test that Authelia is running correctly by opening a web browser and navigating to:

    > https://auth.example.com:9091

    Replace _auth.example.com_ with your domain name.

2.  You should see the Authelia login screen. Enter your LDAP username and password to log in.

3.  Once logged in, you can configure Authelia to work with your web applications.

Congratulations! You have successfully installed Authelia on nixOS Latest.

שתף

## המשיכו לקרוא

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
