refactor(self_host): sorting the options from the self_host
This commit is contained in:
parent
2a36f5c9c1
commit
24fb95b32c
1 changed files with 22 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue