diff options
author | Adam Stephens <adam@valkor.net> | 2023-12-02 09:41:30 -0500 |
---|---|---|
committer | Adam Stephens <adam@valkor.net> | 2024-01-23 14:13:21 -0500 |
commit | 1ebb8ecc8a9ca762649264d3dd643a30d5a4e7d0 (patch) | |
tree | a05e0dbe6d8b3180edac4bf777e29caa6215eecf | |
parent | 1e3b55c8d4bb369c91a67dc0290a93e1429f696d (diff) |
nixos/lxcfs: remove with lib
-rw-r--r-- | nixos/modules/virtualisation/lxcfs.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/virtualisation/lxcfs.nix b/nixos/modules/virtualisation/lxcfs.nix index cdef31ad5f79d..b2eaec774a65c 100644 --- a/nixos/modules/virtualisation/lxcfs.nix +++ b/nixos/modules/virtualisation/lxcfs.nix @@ -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" ]; |