nixos/metacity: Avoid top-level with

This commit is contained in:
Jan Tojnar 2024-08-11 23:35:51 +02:00
parent 369e2d976d
commit 54b056a950

View File

@ -1,7 +1,5 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.metacity;
@ -10,12 +8,12 @@ in
{
options = {
services.xserver.windowManager.metacity.enable = mkEnableOption "metacity";
services.xserver.windowManager.metacity.enable = lib.mkEnableOption "metacity";
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
services.xserver.windowManager.session = singleton
services.xserver.windowManager.session = lib.singleton
{ name = "metacity";
start = ''
${metacity}/bin/metacity &