From 294ab938874e7244c03092d13aeb955dac2bca2e Mon Sep 17 00:00:00 2001
From: Thiago Sposito
Date: Sat, 4 Oct 2025 10:45:50 -0300
Subject: [PATCH] feat: add nix-ld
---
home-manager/nixstation.nix | 2 ++
hosts/Nixstation/default.nix | 14 ++++++++++++++
hosts/common/default.nix | 10 +++++++++-
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/home-manager/nixstation.nix b/home-manager/nixstation.nix
index 2435dc9..199be62 100644
--- a/home-manager/nixstation.nix
+++ b/home-manager/nixstation.nix
@@ -20,5 +20,7 @@
home.packages = with pkgs; [
heroic
steam
+ steam-run
+ code-cursor
];
}
diff --git a/hosts/Nixstation/default.nix b/hosts/Nixstation/default.nix
index 7f46a1c..5f0131e 100644
--- a/hosts/Nixstation/default.nix
+++ b/hosts/Nixstation/default.nix
@@ -141,6 +141,19 @@
ExecStart = "${pkgs.btrfs-progs}/bin/btrfs scrub start -n 2 -B / && ${pkgs.btrfs-progs}/bin/btrfs scrub start -n 2 -B /mnt/hdd0";
};
};
+
+ 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!
time.timeZone = "America/Sao_Paulo";
@@ -152,6 +165,7 @@
qemu.ovmf.enable = true;
# qemu.package = pkgs.qemu_full;
};
+ waydroid.enable = true;
};
zramSwap = {
diff --git a/hosts/common/default.nix b/hosts/common/default.nix
index 18cac84..bb59b85 100644
--- a/hosts/common/default.nix
+++ b/hosts/common/default.nix
@@ -28,6 +28,7 @@
keymapp
libnitrokey
libusb1
+ nix-ld
opensc
pciutils
pcsc-safenet
@@ -58,13 +59,20 @@
nixpkgs.config.allowUnfree = true;
programs = {
- zsh.enable = true;
gnupg = {
agent = {
enable = true;
pinentryPackage = pkgs.pinentry-tty;
};
};
+ nix-ld = {
+ enable = true;
+ libraries = with pkgs; [
+ glibc
+ zlib
+ ];
+ };
+ zsh.enable = true;
};
services = {
pcscd.enable = true;