about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAdam Stephens <adam@valkor.net>2023-12-02 09:41:30 -0500
committerAdam Stephens <adam@valkor.net>2023-12-04 10:06:52 -0500
commitccb7b8e3095adb7096596df6f03eb57a542aec58 (patch)
tree165959e79d3c507e6bd01462fc5bae22f1a7529d /nixos
parentd626de5a59f75205dcf9131e19c58dd2976cafe5 (diff)
downloadnixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.tar
nixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.tar.gz
nixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.tar.bz2
nixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.tar.lz
nixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.tar.xz
nixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.tar.zst
nixlib-ccb7b8e3095adb7096596df6f03eb57a542aec58.zip
nixos/lxcfs: remove with lib
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/lxcfs.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/virtualisation/lxcfs.nix b/nixos/modules/virtualisation/lxcfs.nix
index cdef31ad5f79..b2eaec774a65 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" ];