rename myOptions to modules

This commit is contained in:
Dragyx 2024-04-12 22:03:29 +02:00
commit 6961d2bd8c
45 changed files with 1065 additions and 89 deletions

View file

@ -1,6 +1,6 @@
{ config, lib, ... }:
let
username = config.myOptions.other.system.username;
username = config.modules.other.system.username;
in {
networking = {
networkmanager = {

View file

@ -0,0 +1,69 @@
{ config, lib, ... }:
with lib;
{
options.modules.other.system.monitors = mkOption {
description = "
List of monitors to use
";
default = [];
type = with types; listOf submodule {
name = mkOption {
type = types.str;
description = "Give your monitor a cute name";
default = "monitor0(I am lazy)";
};
device = mkOption {
type = types.str;
description = "The actual device name of the monitor";
};
resolution = mkOption {
type = types.submodule {
width = mkOption {
type = types.int;
description = "monitor width";
default = "1920";
};
height = mkOption {
type = types.int;
description = "monitor height";
default = "1080";
};
};
};
scale = mkOption {
type = types.number;
description = "monitor scale";
default = 1.0;
};
refresh_rate = mkOption {
type = types.int;
description = "monitor refresh rate (in Hz)";
default = 60;
};
position = mkOption {
type = types.submodule {
x = mkOption {
type = types.int;
default = 0;
};
y = mkOption {
type = types.int;
default = 0;
};
};
description = "absolute monitor posititon";
default = {
x = 0;
y = 0;
};
};
transform = mkOption {
type = types.ints.between 0 3;
description = "Rotation of the monitor counterclockwise";
default = 0;
};
};
};
}