about summary refs log tree commit diff
path: root/users/wpcarro/nixos
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-25T02·11-0500
committerwpcarro <wpcarro@gmail.com>2021-12-25T16·07+0000
commit4eb0dea713bec8aa79dd7dc5540e5daafd301cf9 (patch)
treeaecb713453a2931d893c7bef2e041e4f01ba07f2 /users/wpcarro/nixos
parent5a943eb2cd4db62632633e7513994aaddb034bc2 (diff)
refactor(wpcarro/nixos): Define common.services r/3394
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
Diffstat (limited to 'users/wpcarro/nixos')
-rw-r--r--users/wpcarro/nixos/diogenes/default.nix10
-rw-r--r--users/wpcarro/nixos/marcus/default.nix10
2 files changed, 2 insertions, 18 deletions
diff --git a/users/wpcarro/nixos/diogenes/default.nix b/users/wpcarro/nixos/diogenes/default.nix
index 2a3df2e3f52d..105c31793d4c 100644
--- a/users/wpcarro/nixos/diogenes/default.nix
+++ b/users/wpcarro/nixos/diogenes/default.nix
@@ -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";
diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix
index d03da2b910eb..57b9124b2cc6 100644
--- a/users/wpcarro/nixos/marcus/default.nix
+++ b/users/wpcarro/nixos/marcus/default.nix
@@ -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.