This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -2,7 +2,8 @@
lib,
config,
...
}: let
}:
let
inherit (lib) mkOption types;
sshKeys = {
@@ -15,14 +16,14 @@
keyName = config.settings.accounts.sshUser or null;
selectedKey =
if keyName != null
then
lib.attrByPath [keyName] (
builtins.abort "No SSH key defined for hostname/key '${toString keyName}'"
)
sshKeys
else builtins.abort "No accounts.sshUser provided, cannot select SSH key.";
in {
if keyName != null then
lib.attrByPath [
keyName
] (builtins.abort "No SSH key defined for hostname/key '${toString keyName}'") sshKeys
else
builtins.abort "No accounts.sshUser provided, cannot select SSH key.";
in
{
options.settings.accounts = {
username = mkOption {
type = types.str;

View File

@@ -1,7 +1,9 @@
# Yanked from Misterio77
{lib, ...}: let
{ lib, ... }:
let
inherit (lib) mkOption types;
in {
in
{
options.settings.monitors = mkOption {
type = types.listOf (
types.submodule {
@@ -50,6 +52,6 @@ in {
};
}
);
default = [];
default = [ ];
};
}

View File

@@ -1,4 +1,5 @@
{lib, ...}: let
{ lib, ... }:
let
inherit (lib) mkOption types;
bgs = {
wallpaper_1 = "~/media/images/bg_1.jpg";
@@ -8,7 +9,8 @@
wallpaper_5 = "~/media/images/barngreet.png";
};
bgList = builtins.attrNames bgs;
in {
in
{
options.settings.theme = {
background = {
lockscreen = mkOption {