uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
nixos/modules/services/networking/go-shadowsocks2.nix
Normal file
30
nixos/modules/services/networking/go-shadowsocks2.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.go-shadowsocks2.server;
|
||||
in {
|
||||
options.services.go-shadowsocks2.server = {
|
||||
enable = mkEnableOption "go-shadowsocks2 server";
|
||||
|
||||
listenAddress = mkOption {
|
||||
type = types.str;
|
||||
description = "Server listen address or URL";
|
||||
example = "ss://AEAD_CHACHA20_POLY1305:your-password@:8488";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.go-shadowsocks2-server = {
|
||||
description = "go-shadowsocks2 server";
|
||||
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.go-shadowsocks2}/bin/go-shadowsocks2 -s '${cfg.listenAddress}'";
|
||||
DynamicUser = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue