treewide: format using nixfmt

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
This commit is contained in:
Bloxx12 2025-07-20 01:23:48 +02:00
commit e641dfa114
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
113 changed files with 1545 additions and 1019 deletions

View file

@ -2,18 +2,26 @@
config,
lib,
...
}: let
}:
let
inherit (builtins) elemAt;
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) enum listOf str nullOr bool;
inherit (lib.types)
enum
listOf
str
nullOr
bool
;
inherit (lib.lists) elem;
inherit (config.modules.system) systemType;
in {
in
{
options.modules.system = {
users = mkOption {
type = listOf str;
default = ["cr"];
default = [ "cr" ];
description = "A list of users on the system.";
};
@ -27,7 +35,11 @@ in {
};
systemType = mkOption {
type = nullOr (enum ["desktop" "laptop" "server"]);
type = nullOr (enum [
"desktop"
"laptop"
"server"
]);
default = null;
description = ''
The type of the current system. This is used to determine whether things like graphical
@ -37,7 +49,10 @@ in {
isGraphical = mkOption {
type = bool;
default = elem systemType ["desktop" "laptop"];
default = elem systemType [
"desktop"
"laptop"
];
description = ''
Whether the current system is a graphical system.
'';
@ -46,7 +61,10 @@ in {
yubikeySupport = {
enable = mkEnableOption "yubikey support";
deviceType = mkOption {
type = nullOr (enum ["NFC5" "nano"]);
type = nullOr (enum [
"NFC5"
"nano"
]);
default = null;
description = "A list of device models to enable Yubikey support for";
};
@ -76,7 +94,7 @@ in {
enable = mkEnableOption "printing";
extraDrivers = mkOption {
type = listOf str;
default = [];
default = [ ];
description = "A list of extra drivers to enable for printing";
};
};