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 = {
|
modules.system = {
|
||||||
server = {
|
services = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
waydroid.enable = true;
|
waydroid.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
server = {
|
services = {
|
||||||
distrobox.enable = true;
|
distrobox.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
./apps
|
./apps
|
||||||
./desktop
|
./desktop
|
||||||
./hardware
|
./hardware
|
||||||
./server
|
./services
|
||||||
|
|
||||||
# Common configuration
|
# Common configuration
|
||||||
./common.nix
|
./common.nix
|
||||||
|
|
|
@ -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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -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
|
||||||
'';
|
'';
|
|
@ -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
|
||||||
'';
|
'';
|
|
@ -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
|
||||||
'';
|
'';
|
Loading…
Add table
Reference in a new issue