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

@ -1,10 +1,18 @@
{lib, ...}: let
{ lib, ... }:
let
inherit (lib.options) mkOption;
inherit (lib.types) submodule int ints number attrsOf;
in {
inherit (lib.types)
submodule
int
ints
number
attrsOf
;
in
{
options.modules.system.hardware.monitors = mkOption {
description = "\n List of monitors to use\n ";
default = {};
default = { };
type = attrsOf (submodule {
options = {
resolution = mkOption {

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";
};
};

View file

@ -1,7 +1,9 @@
{lib, ...}: let
{ lib, ... }:
let
inherit (lib.types) str enum;
inherit (lib.options) mkEnableOption mkOption;
in {
in
{
options.modules.system.programs = {
editors = {
helix.enable = mkEnableOption "Helix text editor";
@ -27,23 +29,42 @@ in {
};
default = {
terminal = mkOption {
type = enum ["foot" "kitty"];
type = enum [
"foot"
"kitty"
];
default = "foot";
};
fileManager = mkOption {
type = enum ["thunar" "dolphin" "nemo"];
type = enum [
"thunar"
"dolphin"
"nemo"
];
default = "thunar";
};
browser = mkOption {
type = enum ["firefox" "librewolf" "chromium"];
type = enum [
"firefox"
"librewolf"
"chromium"
];
default = "firefox";
};
editor = mkOption {
type = enum ["neovim" "helix" "emacs"];
type = enum [
"neovim"
"helix"
"emacs"
];
default = "emacs";
};
launcher = mkOption {
type = enum ["anyrun" "rofi" "wofi"];
type = enum [
"anyrun"
"rofi"
"wofi"
];
default = "anyrun";
};
};