nixos/lxcfs: remove with lib

This commit is contained in:
Adam Stephens 2023-12-02 09:41:30 -05:00
parent d626de5a59
commit ccb7b8e309
No known key found for this signature in database

View file

@ -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" ];