Open davidak opened 6 years ago
This can be solved by an additional line in /etc/nixos/configuration.nix
:
security.wrappers.hddtemp.source = "${pkgs.hddtemp}/bin/hdtemp";
Nixpkgs alone can't setuid programs, so it can't be handled in user profile.
For system profile, services.xserver.desktopManager.xfce
module might setuid hddtemp
when xfce.xfce4-sensors-plugin
is in environment.systemPackages
.
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
There is way better (sane) solution then just setuid'ing hddparm. I got same problem in ubuntu, which I installed to friend laptop. Found solution mentioned here: https://askubuntu.com/questions/280440/how-to-get-xfce4-sensors-plugin-to-show-hdd-temperature-in-xfce-panel At my own system (gentoo) xfce4-sensors-plugin has netcat support enabled together hddparm if emerged with 'hddparm' use flag. In contrast, rules file in ubuntu package doesn't have it. As result - even if I start hddparm daemon manually with all options (as mentioned in replies at above link), it's useless.
I marked this as stale due to inactivity. → More info
Still relevant.
I marked this as stale due to inactivity. → More info
It's still not working. Sensors plugin is declared in System Packages (along with the other XFCE plugins) but I still get that permission error.
Issue description
Steps to reproduce
xfce.xfce4-sensors-plugin
Technical details
"x86_64-linux"
Linux 4.9.70, NixOS, 17.09.2430.ed3b1bc8448 (Hummingbird)
yes
yes
nix-env (Nix) 1.11.16
"nixos-17.09.2430.ed3b1bc8448"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs