Re: [Nix-dev] cleaning /tmp

2012-01-30 Thread Eelco Dolstra
Hi,

On 30/01/12 12:54, Florian Friesdorf wrote:

 services.cleanTmp.paths = [ '/tmp' '/var/tmp' ] (default)
 services.cleanTmp.onBoot = true;

The FHS says:

  Files and directories located in /var/tmp must not be deleted when the
  system is booted. Although data stored in /var/tmp is typically deleted
  in a site-specific manner, it is recommended that deletions occur at
  a less frequent interval than /tmp.

http://www.pathname.com/fhs/2.2/fhs-5.15.html

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] cleaning /tmp

2012-01-30 Thread Florian Friesdorf
On Mon, 30 Jan 2012 13:08:28 +0100, Eelco Dolstra e.dols...@tudelft.nl wrote:
 Hi,
 
 On 30/01/12 12:54, Florian Friesdorf wrote:
 
  services.cleanTmp.paths = [ '/tmp' '/var/tmp' ] (default)

service.cleanTmp.paths = [ '/tmp' ] (default)

  services.cleanTmp.onBoot = true;
 
 The FHS says:
 
   Files and directories located in /var/tmp must not be deleted when the
   system is booted. Although data stored in /var/tmp is typically deleted
   in a site-specific manner, it is recommended that deletions occur at
   a less frequent interval than /tmp.
 
 http://www.pathname.com/fhs/2.2/fhs-5.15.html
 
 -- 
 Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Florian Friesdorf f...@chaoflow.net
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: f...@chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC


pgpR3Godl3nre.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] cleaning /tmp

2012-01-30 Thread Marc Weber
Can we compare the solution add nixos option to adding a recipes wiki
page adding such one liners as samples?

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] cleaning /tmp

2012-01-29 Thread Mathijs Kwik
Hi all,

After a reboot, I found that my /tmp is taking up 8Gb of space.
I don't want to use a tmpfs for it, as I occasionally use audio/video
tools that write to /tmp, with sizes above my system memory.

Looking at FHS's recommendations, I would say there are 2 moments to clean /tmp.
- At boot time (almost) everything can be deleted.
- For systems that don't reboot often (servers, laptops that just
suspend instead of shut down), a daily cron job can delete items older
than (2 weeks / a month).

Does nixos have anything in place to manage /tmp?
What do others do?

Thanks,
Mathijs
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] cleaning /tmp

2012-01-29 Thread Marc Weber
 Does nixos have anything in place to manage /tmp?
 What do others do?
It was committed once in the past and reverted again for good reasons.
(eg before switching to SSD/tmpfs I deleted /tmp only once every 4
months keeping files around.)
If you want it opt-in by using a startup shell script.

Eg there are configuration options
boot.postBoot and
boot.initrd.postMount
and such.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev