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; [
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue