Refactor: Rename system.server -> system.services
All checks were successful
check / check (push) Successful in 34s
All checks were successful
check / check (push) Successful in 34s
Fix #6
This commit is contained in:
parent
453f364d4f
commit
c8d1f9f65a
8 changed files with 12 additions and 12 deletions
|
@ -49,7 +49,7 @@
|
|||
};
|
||||
|
||||
modules.system = {
|
||||
server = {
|
||||
services = {
|
||||
docker.enable = true;
|
||||
openssh.enable = true;
|
||||
};
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
waydroid.enable = true;
|
||||
};
|
||||
|
||||
server = {
|
||||
services = {
|
||||
distrobox.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
./apps
|
||||
./desktop
|
||||
./hardware
|
||||
./server
|
||||
./services
|
||||
|
||||
# Common configuration
|
||||
./common.nix
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.server.distrobox;
|
||||
cfg = config.modules.system.services.distrobox;
|
||||
in
|
||||
{
|
||||
options.modules.system.server.distrobox = {
|
||||
options.modules.system.services.distrobox = {
|
||||
enable = mkEnableOption ''
|
||||
Enable distrobox with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
modules.system.server.docker.enable = true;
|
||||
modules.system.services.docker.enable = true;
|
||||
environment.systemPackages = with pkgs; [ distrobox ];
|
||||
};
|
||||
}
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.server.docker;
|
||||
cfg = config.modules.system.services.docker;
|
||||
in
|
||||
{
|
||||
options.modules.system.server.docker = {
|
||||
options.modules.system.services.docker = {
|
||||
enable = mkEnableOption ''
|
||||
Enable docker with my custom configurations
|
||||
'';
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.server.ollama;
|
||||
cfg = config.modules.system.services.ollama;
|
||||
nvidiaEnabled = config.modules.system.hardware.nvidia.enable;
|
||||
in
|
||||
{
|
||||
options.modules.system.server.ollama = {
|
||||
options.modules.system.services.ollama = {
|
||||
enable = mkEnableOption ''
|
||||
Enable ollama with my custom configurations
|
||||
'';
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.server.openssh;
|
||||
cfg = config.modules.system.services.openssh;
|
||||
in
|
||||
{
|
||||
options.modules.system.server.openssh = {
|
||||
options.modules.system.services.openssh = {
|
||||
enable = mkEnableOption ''
|
||||
Enable openssh with my custom configurations
|
||||
'';
|
Loading…
Add table
Reference in a new issue