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

@ -1,6 +1,7 @@
{ pkgs {
, lib pkgs,
, ... lib,
...
}: }:
{ {
imports = [ imports = [

View file

@ -1,5 +1,6 @@
{ pkgs {
, ... pkgs,
...
}: }:
{ {
imports = [ imports = [
@ -142,18 +143,6 @@
}; };
}; };
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
'';
};
};
}; };
system.stateVersion = "25.11"; # keep it! system.stateVersion = "25.11"; # keep it!
time.timeZone = "America/Sao_Paulo"; time.timeZone = "America/Sao_Paulo";

View file

@ -82,6 +82,18 @@
pkgs.libwacom pkgs.libwacom
pkgs.nitrokey-udev-rules 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 = { }; users.groups.scard = { };