Refactor: Rename system.server -> system.services
All checks were successful
check / check (push) Successful in 34s

Fix #6
This commit is contained in:
Florian RICHER 2025-01-29 20:05:56 +01:00
parent 453f364d4f
commit c8d1f9f65a
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
8 changed files with 12 additions and 12 deletions

View file

@ -49,7 +49,7 @@
}; };
modules.system = { modules.system = {
server = { services = {
docker.enable = true; docker.enable = true;
openssh.enable = true; openssh.enable = true;
}; };

View file

@ -58,7 +58,7 @@
waydroid.enable = true; waydroid.enable = true;
}; };
server = { services = {
distrobox.enable = true; distrobox.enable = true;
}; };
}; };

View file

@ -5,7 +5,7 @@
./apps ./apps
./desktop ./desktop
./hardware ./hardware
./server ./services
# Common configuration # Common configuration
./common.nix ./common.nix

View file

@ -2,16 +2,16 @@
with lib; with lib;
let let
cfg = config.modules.system.server.distrobox; cfg = config.modules.system.services.distrobox;
in in
{ {
options.modules.system.server.distrobox = { options.modules.system.services.distrobox = {
enable = mkEnableOption '' enable = mkEnableOption ''
Enable distrobox with my custom configurations Enable distrobox with my custom configurations
''; '';
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
modules.system.server.docker.enable = true; modules.system.services.docker.enable = true;
environment.systemPackages = with pkgs; [ distrobox ]; environment.systemPackages = with pkgs; [ distrobox ];
}; };
} }

View file

@ -2,10 +2,10 @@
with lib; with lib;
let let
cfg = config.modules.system.server.docker; cfg = config.modules.system.services.docker;
in in
{ {
options.modules.system.server.docker = { options.modules.system.services.docker = {
enable = mkEnableOption '' enable = mkEnableOption ''
Enable docker with my custom configurations Enable docker with my custom configurations
''; '';

View file

@ -2,11 +2,11 @@
with lib; with lib;
let let
cfg = config.modules.system.server.ollama; cfg = config.modules.system.services.ollama;
nvidiaEnabled = config.modules.system.hardware.nvidia.enable; nvidiaEnabled = config.modules.system.hardware.nvidia.enable;
in in
{ {
options.modules.system.server.ollama = { options.modules.system.services.ollama = {
enable = mkEnableOption '' enable = mkEnableOption ''
Enable ollama with my custom configurations Enable ollama with my custom configurations
''; '';

View file

@ -2,10 +2,10 @@
with lib; with lib;
let let
cfg = config.modules.system.server.openssh; cfg = config.modules.system.services.openssh;
in in
{ {
options.modules.system.server.openssh = { options.modules.system.services.openssh = {
enable = mkEnableOption '' enable = mkEnableOption ''
Enable openssh with my custom configurations Enable openssh with my custom configurations
''; '';