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, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.virtualisation.lxc.lxcfs;
|
cfg = config.virtualisation.lxc.lxcfs;
|
||||||
in {
|
in {
|
||||||
|
@ -14,8 +12,8 @@ in {
|
||||||
###### interface
|
###### interface
|
||||||
options.virtualisation.lxc.lxcfs = {
|
options.virtualisation.lxc.lxcfs = {
|
||||||
enable =
|
enable =
|
||||||
mkOption {
|
lib.mkOption {
|
||||||
type = types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
This enables LXCFS, a FUSE filesystem for LXC.
|
This enables LXCFS, a FUSE filesystem for LXC.
|
||||||
|
@ -29,7 +27,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
systemd.services.lxcfs = {
|
systemd.services.lxcfs = {
|
||||||
description = "FUSE filesystem for LXC";
|
description = "FUSE filesystem for LXC";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
Loading…
Reference in a new issue