Files
nix-config/modules/factory/autologin.nix
T
Weckyy702 24146bede1 Upgrade to NixOS 26.05
Had to redo hyprland config since they use lua in the newest versions
2026-06-18 13:50:32 +02:00

23 lines
524 B
Nix

{ inputs, ... }: {
config.flake.factory.autologin = username: {
imports = with inputs.self.modules.nixos; [
];
services.getty.autologinUser = username;
home-manager.sharedModules = [
inputs.self.modules.homeManager.autologin
];
};
config.flake.modules.homeManager.autologin = {
imports = with inputs.self.modules.homeManager; [
];
programs.zsh.profileExtra = ''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec start-hyprland
fi
'';
};
}