nixos/lxcfs: remove with lib
This commit is contained in:
parent
d626de5a59
commit
ccb7b8e309
1 changed files with 3 additions and 5 deletions
|
@ -2,8 +2,6 @@
|
|||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.virtualisation.lxc.lxcfs;
|
||||
in {
|
||||
|
@ -14,8 +12,8 @@ in {
|
|||
###### interface
|
||||
options.virtualisation.lxc.lxcfs = {
|
||||
enable =
|
||||
mkOption {
|
||||
type = types.bool;
|
||||
lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
This enables LXCFS, a FUSE filesystem for LXC.
|
||||
|
@ -29,7 +27,7 @@ in {
|
|||
};
|
||||
|
||||
###### implementation
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.lxcfs = {
|
||||
description = "FUSE filesystem for LXC";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
|
Loading…
Reference in a new issue