refactor(wpcarro/nixos): Define common.services
DRY things up with this mixin. Change-Id: I5791a50b01902734dff91d391e1aa90a21ce4fbb Reviewed-on: https://cl.tvl.fyi/c/depot/+/4600 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
5a943eb2cd
commit
4eb0dea713
3 changed files with 12 additions and 18 deletions
|
|
@ -1,6 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
depot.automatic-gc = {
|
||||
enable = true;
|
||||
interval = "1 hour";
|
||||
diskThreshold = 16; # GiB
|
||||
maxFreed = 10; # GiB
|
||||
preserveGenerations = "14d";
|
||||
};
|
||||
};
|
||||
|
||||
# Command-line tools I commonly used and want available on most (or all) of my
|
||||
# machines.
|
||||
shell-utils = with pkgs; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue