nixos/metacity: Avoid top-level with
This commit is contained in:
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user