nixos/services.go-shadowsocks2: remove with lib;
This commit is contained in:
parent
2ec70782ab
commit
90a98fc103
@ -1,20 +1,18 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.go-shadowsocks2.server;
|
||||
in {
|
||||
options.services.go-shadowsocks2.server = {
|
||||
enable = mkEnableOption "go-shadowsocks2 server";
|
||||
enable = lib.mkEnableOption "go-shadowsocks2 server";
|
||||
|
||||
listenAddress = mkOption {
|
||||
type = types.str;
|
||||
listenAddress = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Server listen address or URL";
|
||||
example = "ss://AEAD_CHACHA20_POLY1305:your-password@:8488";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.go-shadowsocks2-server = {
|
||||
description = "go-shadowsocks2 server";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user