about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2022-09-03 14:01:07 +0200
committerMichael Weiss <dev.primeos@gmail.com>2022-09-03 14:11:58 +0200
commit3add3167592fe37464a91995386d88bec1d31093 (patch)
treeff83bd126782973372564b5104f052fd71db0529 /nixos
parente77f54ea0b69c457f1ac4ca994db4bb4d9e0d9c1 (diff)
downloadnixlib-3add3167592fe37464a91995386d88bec1d31093.tar
nixlib-3add3167592fe37464a91995386d88bec1d31093.tar.gz
nixlib-3add3167592fe37464a91995386d88bec1d31093.tar.bz2
nixlib-3add3167592fe37464a91995386d88bec1d31093.tar.lz
nixlib-3add3167592fe37464a91995386d88bec1d31093.tar.xz
nixlib-3add3167592fe37464a91995386d88bec1d31093.tar.zst
nixlib-3add3167592fe37464a91995386d88bec1d31093.zip
nixos/tests/cagebreak: Enable just polkit instead of udisks2
The udisks2 service was enabled to fix the test in (c5ebec7ee42).
However, cagebreak doesn't require udisks2, just polkit (which the
udisks2 module enables and which is why the cagebreak test broke after
the udisks2 module was disabled by default).

I've documented why polkit is required in this PR:
https://github.com/NixOS/nixpkgs/pull/156858

In this case the "dependency" chain is basically cagebreak -> wlroots ->
libseat -> logind (with polkit support) -> polkit.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/cagebreak.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/cagebreak.nix b/nixos/tests/cagebreak.nix
index 799535eecef6..1fef7cb57cfc 100644
--- a/nixos/tests/cagebreak.nix
+++ b/nixos/tests/cagebreak.nix
@@ -33,7 +33,7 @@ in
 
     hardware.opengl.enable = true;
     programs.xwayland.enable = true;
-    services.udisks2.enable = true;
+    security.polkit.enable = true;
     environment.systemPackages = [ pkgs.cagebreak pkgs.wayland-utils ];
 
     # Need to switch to a different GPU driver than the default one (-vga std) so that Cagebreak can launch: