Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | nixos/swap: support for resizing swapfile | Bjørn Forsman | 2016-07-06 |
| | | | | | | | | | | | | | | | | | | | Currently NixOS creates the swapfile (with the specified size) only if it doesn't already exist. Changing the swapfile size afterwards will not have any effect. This commit changes that so the swapfile will be recreated whenever swapDevices.*.size is changed (or more precisely, whenever the actual file size differs from the configured one), allowing both growing and shrinking the swapfile. The service unit has "restartIfChanged = false", so we don't have to worry about the swapfile being in use at the time this code is run (you have to reboot for swapfile changes). fallocate doesn't shrink files, use truncate for that. truncate can also be used to grow files, but it creates "holes" in the file which doesn't work with swapfiles. | ||
* | swap service: don't restart mkswap.service on switches | Nikolay Amiantov | 2016-01-12 |
| | | | | Sadly, we can't instruct systemd to properly restart device-name.swap when this service restarts (or I haven't found the way to do so). As of now blindly restarting it would only get you a bunch of errors about device already used -- let's avoid it. | ||
* | nixos/swap: fix stopping mkswap for encrypted device | Nikolay Amiantov | 2016-01-12 |
| | |||
* | nixos/swap: refactor, add randomEncryption option | Nikolay Amiantov | 2015-10-20 |
| | |||
* | Get all lib functions from lib, not pkgs.lib, in modules | Shea Levy | 2014-07-02 |
| | |||
* | Don't create world-readable swapfiles | Eelco Dolstra | 2014-04-24 |
| | |||
* | Rewrite ‘with pkgs.lib’ -> ‘with lib’ | Eelco Dolstra | 2014-04-14 |
| | | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem. | ||
* | Substitute "types.uniq types.string" -> "types.str" | Eelco Dolstra | 2013-10-30 |
| | |||
* | Get rid of the only use of mkNotdef | Eelco Dolstra | 2013-10-28 |
| | |||
* | Move all of NixOS to nixos/ in preparation of the repository merge | Eelco Dolstra | 2013-10-10 |