3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/cinnamon: silence a warning and remove unused args

Module argument `nodes.machine.config` is deprecated. Use `nodes.machine` instead.
This commit is contained in:
Bobby Rong 2023-06-01 20:53:06 +08:00
parent 7cf3428fd5
commit 9f5dc9f927
No known key found for this signature in database

View file

@ -3,7 +3,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
meta.maintainers = lib.teams.cinnamon.members;
nodes.machine = { nodes, ... }: {
nodes.machine = { ... }: {
imports = [ ./common/user-account.nix ];
services.xserver.enable = true;
services.xserver.desktopManager.cinnamon.enable = true;
@ -13,7 +13,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
testScript = { nodes, ... }:
let
user = nodes.machine.config.users.users.alice;
user = nodes.machine.users.users.alice;
uid = toString user.uid;
bus = "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${uid}/bus";
display = "DISPLAY=:0.0";