refactor: Move sw into properly nested modules with unconditional import
This commit is contained in:
@@ -24,14 +24,28 @@
|
||||
default = null;
|
||||
description = ''
|
||||
Convenience option to configure a host for a specific user.
|
||||
Automatically enables the user (sets athenix.users.username.enable = true).
|
||||
Value should be a username from athenix.users.accounts.
|
||||
|
||||
When set, automatically:
|
||||
- Enables the user account (athenix.users.<username>.enable = true)
|
||||
- Sets as default WSL user (on WSL systems)
|
||||
|
||||
The username must exist in athenix.users (defined in users.nix).
|
||||
'';
|
||||
example = "engr-ugaif";
|
||||
};
|
||||
host.useHostPrefix = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Whether to prepend the host prefix to the hostname (used in inventory and hosts/default.nix).";
|
||||
description = ''
|
||||
Whether to prepend the hardware type prefix to the hostname.
|
||||
|
||||
When true:
|
||||
- "nix-laptop" with device "1" → hostname "nix-laptop1"
|
||||
- "nix-wsl" with device "alice" → hostname "nix-wsl-alice"
|
||||
|
||||
When false:
|
||||
- Device name becomes the full hostname (useful for custom names)
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user