Adds hosts/desktop: 512G system disk, 1T disk for /home, each in its own LUKS container. modules/disk.nix gains moonarch.disk.home, which moves the /home subvolume to the second disk and drops it from the first. New modules/user.nix declares moonarch.user without a default, so the login name exists once per host instead of once per reference. Both hosts set an initialPassword: swaylock authenticates through pam_unix and cannot unlock a screen for an account without one.
21 lines
747 B
Nix
21 lines
747 B
Nix
# ABOUTME: Declares the moonarch.user option; every host sets its own login name.
|
|
# ABOUTME: Autologin, group membership and snapper read moonarch.user from here.
|
|
|
|
{ lib, ... }:
|
|
|
|
{
|
|
options.moonarch.user = lib.mkOption {
|
|
type = lib.types.str;
|
|
example = "moon";
|
|
description = ''
|
|
Login name of the primary account, and therefore the directory name under
|
|
/home. Autologin, the group memberships and snapper's ALLOW_USERS all read
|
|
this, so the name is declared once instead of once per reference.
|
|
|
|
There is no default: the name belongs to the machine, so every host sets
|
|
it. Changing it on an installed system does not rename the home directory —
|
|
that stays behind under the old name.
|
|
'';
|
|
};
|
|
}
|