mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[server]: use confLib to manage services
This commit is contained in:
parent
fd6df781cf
commit
31623b65d6
37 changed files with 512 additions and 316 deletions
|
|
@ -1,7 +1,6 @@
|
|||
{ lib, config, ... }:
|
||||
{ lib, config, confLib, ... }:
|
||||
let
|
||||
serviceName = "emacs";
|
||||
servicePort = 9812;
|
||||
inherit (confLib.gen { name = "emacs"; port = 9812; }) servicePort serviceName;
|
||||
in
|
||||
{
|
||||
options.swarselmodules.server.${serviceName} = lib.mkEnableOption "enable ${serviceName} server on server";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue