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:
William Carroll 2021-12-24 21:11:24 -05:00 committed by wpcarro
parent 5a943eb2cd
commit 4eb0dea713
3 changed files with 12 additions and 18 deletions

View file

@ -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; [

View file

@ -69,15 +69,7 @@ in {
environment.systemPackages = wpcarro.common.shell-utils;
services = {
depot.automatic-gc = {
enable = true;
interval = "1 hour";
diskThreshold = 16; # GiB
maxFreed = 10; # GiB
preserveGenerations = "14d";
};
services = wpcarro.common.services // {
depot.quassel = {
enable = true;
acmeHost = "quassel.wpcarro.dev";

View file

@ -34,7 +34,7 @@ in {
time.timeZone = "America/New_York";
services = {
services = wpcarro.common.services // {
xserver = {
enable = true;
libinput = {
@ -61,14 +61,6 @@ in {
start = "${wpcarrosEmacs}/bin/wpcarros-emacs";
};
};
depot.automatic-gc = {
enable = true;
interval = "1 hour";
diskThreshold = 16; # GiB
maxFreed = 10; # GiB
preserveGenerations = "14d";
};
};
# Enable sound.