refactor(self_host): sorting the options from the self_host

This commit is contained in:
Raphael 2025-10-31 14:27:48 +01:00
parent 2a36f5c9c1
commit 24fb95b32c
No known key found for this signature in database

View file

@ -7,6 +7,14 @@
}: }:
let let
git = import ./self_host/git.nix {
inherit
inputs
config
pkgs
lib
;
};
htop = import ./self_host/htop.nix { htop = import ./self_host/htop.nix {
inherit inherit
inputs inputs
@ -59,11 +67,12 @@ let
in in
{ {
imports = [ imports = [
nextcloud git
mail
htop htop
ollama mail
monitor monitor
nextcloud
ollama
sso sso
]; ];
@ -73,16 +82,16 @@ in
}; };
}; };
options.service.selfhost = { options.service.selfhost = {
git = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the git";
};
htop = lib.mkOption { htop = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
description = "Enable the htop"; description = "Enable the htop";
}; };
ollama = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the ollama";
};
mail = lib.mkOption { mail = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
@ -98,6 +107,11 @@ in
default = false; default = false;
description = "Enable the nextcloud"; description = "Enable the nextcloud";
}; };
ollama = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the ollama";
};
sso = lib.mkOption { sso = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;