mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
nixos/services.u9fs: remove with lib;
This commit is contained in:
parent
443dc608d2
commit
43235a1a61
|
@ -1,7 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.u9fs;
|
||||
in
|
||||
|
@ -11,14 +8,14 @@ in
|
|||
|
||||
services.u9fs = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether to run the u9fs 9P server for Unix.";
|
||||
};
|
||||
|
||||
listenStreams = mkOption {
|
||||
type = types.listOf types.str;
|
||||
listenStreams = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ "564" ];
|
||||
example = [ "192.168.16.1:564" ];
|
||||
description = ''
|
||||
|
@ -27,14 +24,14 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
type = types.str;
|
||||
user = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "nobody";
|
||||
description = "User to run u9fs under.";
|
||||
};
|
||||
|
||||
extraArgs = mkOption {
|
||||
type = types.str;
|
||||
extraArgs = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
example = "-a none";
|
||||
description = ''
|
||||
|
@ -47,7 +44,7 @@ in
|
|||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
systemd = {
|
||||
sockets.u9fs = {
|
||||
|
|
Loading…
Reference in a new issue