[Nix-dev] Which /etc location for laptop-mode?
Eelco Dolstra
e.dolstra at tudelft.nl
Fri Jul 4 10:48:54 CEST 2008
Hi Marc,
Marc Weber wrote:
> The kernel ships with a nice small script called laptop-mode switching
> off disk, scaling down cpu speed etc so that your battery lasts longer.
>
> Documentation and the scripts can be found in Documentation/...
> The script itself has two default location for it's configuration:
> /etc/default/laptop-mode
> and
> /etc/sysconfig/laptop-mode
> (Debian and others)
>
> Which location is best for nixos? Just /etc/lapotp-mode?
Well, you could also build the config file in the store and substitute the path
to the config file in the script, or pass it via an environment variable.
But otherwise I'd say /etc/default is best, since we don't actually have an
/etc/sysconfig yet.
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
More information about the nix-dev
mailing list