1
0
Fork
You've already forked authologin
0
A simple autologin service.
  • Nix 60.7%
  • Rust 39.3%
2026年04月14日 22:39:17 +03:00
nix Adjust PAM configuration 2026年04月14日 22:39:05 +03:00
src Add --close-stdout 2025年09月18日 22:06:03 +03:00
.envrc Simplify the Flake 2025年09月09日 16:03:21 +03:00
.gitignore Hello world 2023年10月02日 18:11:32 +03:00
Cargo.lock Update dependencies 2026年03月09日 05:06:30 +02:00
Cargo.toml Replace slog with tracing 2025年09月18日 22:05:35 +03:00
flake.lock Update Flake inputs 2026年04月14日 22:39:17 +03:00
flake.nix Fix devshell 2025年09月18日 21:59:15 +03:00
README.md Add a README 2023年11月08日 20:16:32 +02:00

Usage

{
 inputs = {
 # ...
 authologin.url = "git+https://codeberg.org/ollijh/authologin";
 authologin.inputs.nixpkgs.follows = "nixpkgs";
 # ...
 };
 outputs = { nixpkgs, authologin, ... }: {
 nixosConfigurations.joes-desktop = nixpkgs.lib.nixosSystem {
 # ...
 modules = [
 # ...
 authologin.nixosModules.default
 ({lib, ...}: {
 services.authologin = {
 enable = true;
 user = "joe"; # Replace with your username.
 command = lib.getExe config.programs.sway.package; # To start Sway, for example.
 };
 })
 ];
 };
 };
}

Will try to use your disk encryption password to authenticate and open GNOME keyring if your root disk is encrypted.

Note that the PAM configuration is rather fixed (see flake.nix), so if you need to alter it you have to replace the whole thing.