refactor: reorganize Nix configuration and reintroduce Waydroid service

- Update Nix configuration files to improve structure and readability
- Reintroduce Waydroid service configuration in common/default.nix
- Adjust formatting for consistency across home-manager and host configurations
This commit is contained in:
Thiago Sposito 2025-10-05 22:01:07 -03:00
parent 0fbeaa8f39
commit 65627a3ab5
3 changed files with 20 additions and 18 deletions

View file

@ -82,6 +82,18 @@
pkgs.libwacom
pkgs.nitrokey-udev-rules
];
waydroid-config = {
description = "Configure Waydroid Properties";
wantedBy = [ "multi-user.target" ];
after = [ "waydroid-container.service" ];
serviceConfig = {
Type = "oneshot";
ExecStart = pkgs.writeShellScript "waydroid-config" ''
echo "ro.hardware.gralloc=default" >> /var/lib/waydroid/waydroid_base.prop
echo "ro.hardware.egl=swiftshader" >> /var/lib/waydroid/waydroid_base.prop
'';
};
};
};
users.groups.scard = { };