Make the name of the setup user look more Windows like
This commit is contained in:
parent
4f17c95487
commit
3db9ed6d59
|
@ -1,4 +1,4 @@
|
||||||
{ lib, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkOption
|
mkOption
|
||||||
|
@ -7,9 +7,20 @@
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
|
||||||
|
setupUser = lib.strings.stringToCharacters config.valhalla.setupUser.name;
|
||||||
|
|
||||||
winType = types.submodule (
|
winType = types.submodule (
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
|
setupUser = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "The name of the user for setting up Windows.";
|
||||||
|
default = lib.strings.concatStrings (
|
||||||
|
[(lib.strings.toUpper (builtins.elemAt setupUser 0))] ++
|
||||||
|
(lib.lists.drop 1 setupUser)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
dualboot = {
|
dualboot = {
|
||||||
enable = mkEnableOption "dual boot";
|
enable = mkEnableOption "dual boot";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue