nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit 0cea5aeba6b641c42e50ac71354e53c061a82aa7
parent 2960e47c78efdf3ced6a9aebaa1cf80428dd1348
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Sat, 23 Aug 2025 08:45:11 +0100

Common autologin file

Diffstat:
Acommon/autologin.nix | 5+++++
Mmachines/arcadia.nix | 4+---
Mmachines/minerva.nix | 4+---
3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/common/autologin.nix b/common/autologin.nix @@ -0,0 +1,5 @@ +{ username, ... }: + +{ + services.getty.autologinUser = "${username}"; +} diff --git a/machines/arcadia.nix b/machines/arcadia.nix @@ -14,6 +14,7 @@ in ./${machine}-hardware.nix # Include the results of the hardware scan. (import "${home-manager}/nixos") # Home-Manager ../common/audio.nix + (import ../common/autologin.nix {inherit username;}) ../common/flakes.nix ../common/garbage.nix (import ../common/locale.nix {inherit config pkgs timezone;}) @@ -45,9 +46,6 @@ in # Hostname networking.hostName = "arcadia"; # Define your hostname. - # Auto login - services.getty.autologinUser = "${username}"; - # Hardware acceleration hardware.graphics = { enable = true; diff --git a/machines/minerva.nix b/machines/minerva.nix @@ -21,6 +21,7 @@ in { ./${machine}-hardware.nix # Include the results of the hardware scan. (import "${home-manager}/nixos") # Home-Manager ../common/audio.nix + (import ../common/autologin.nix {inherit username;}) ../common/flakes.nix ../common/fonts.nix ../common/garbage.nix @@ -65,9 +66,6 @@ in { # Hostname networking.hostName = "minerva"; # Define your hostname. - # Auto login - services.getty.autologinUser = "${username}"; - # Packages environment.systemPackages = with pkgs; [ atool