mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/nar-serve: remove with lib;
(#343472)
This commit is contained in:
parent
3accc97867
commit
201d35822e
1 changed files with 5 additions and 5 deletions
|
@ -1,18 +1,18 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
cfg = config.services.nar-serve;
|
cfg = config.services.nar-serve;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
meta = {
|
meta = {
|
||||||
maintainers = [ maintainers.rizary maintainers.zimbatm ];
|
maintainers = with lib.maintainers; [ rizary zimbatm ];
|
||||||
};
|
};
|
||||||
options = {
|
options = {
|
||||||
services.nar-serve = {
|
services.nar-serve = {
|
||||||
enable = mkEnableOption "serving NAR file contents via HTTP";
|
enable = lib.mkEnableOption "serving NAR file contents via HTTP";
|
||||||
|
|
||||||
package = mkPackageOption pkgs "nar-serve" { };
|
package = lib.mkPackageOption pkgs "nar-serve" { };
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
|
@ -48,7 +48,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.services.nar-serve = {
|
systemd.services.nar-serve = {
|
||||||
description = "NAR server";
|
description = "NAR server";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue