mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/metacity: Avoid top-level with
This commit is contained in:
parent
369e2d976d
commit
54b056a950
@ -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 &
|
||||
|
Loading…
Reference in New Issue
Block a user