diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-16T05·59-0500 |
---|---|---|
committer | wpcarro <wpcarro@gmail.com> | 2021-12-16T22·07+0000 |
commit | 9c9a88de874506383829b4ed4fb0fafc4238da9a (patch) | |
tree | d49436890f7450c838160c36a62ec69d7666526a /users/wpcarro/nixos | |
parent | 9c4e34bde681d9089dba1db788535fa03ac74339 (diff) |
feat(wpcarro/marcus): Add some TVL goodies r/3282
TL;DR: - enable TVL cache (ty @grfn) - enable automatic-gc (ty @tazjin) Change-Id: I2c7def718f10d90c6921461c6135f18358e33198 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4362 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/nixos')
-rw-r--r-- | users/wpcarro/nixos/marcus/default.nix | 49 |
1 files changed, 32 insertions, 17 deletions
diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix index 293b9dc73a71..bfbc392c21e8 100644 --- a/users/wpcarro/nixos/marcus/default.nix +++ b/users/wpcarro/nixos/marcus/default.nix @@ -7,7 +7,12 @@ let briefcasePath = "$HOME/depot/users/wpcarro"; }; in { - imports = [ ./hardware.nix ]; + imports = [ + (depot.path + "/users/wpcarro/nixos/marcus/hardware.nix") + ]; + + # Use the TVL binary cache + tvl.cache.enable = true; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -25,23 +30,33 @@ in { time.timeZone = "America/New_York"; - services.xserver = { - enable = true; - libinput = { + services = { + xserver = { enable = true; - touchpad.naturalScrolling = false; - touchpad.tapping = false; - }; - layout = "us"; - xkbOptions = "caps:escape"; - displayManager = { - # Give EXWM permission to control the session (from tazjin's setup). - sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +SI:localhost:$USER"; - lightdm.enable = true; + libinput = { + enable = true; + touchpad.naturalScrolling = false; + touchpad.tapping = false; + }; + layout = "us"; + xkbOptions = "caps:escape"; + displayManager = { + # Give EXWM permission to control the session (from tazjin's setup). + sessionCommands = "${pkgs.xorg.xhost}/bin/xhost +SI:localhost:$USER"; + lightdm.enable = true; + }; + windowManager.session = lib.singleton { + name = "exwm"; + start = "${wpcarros-emacs}/bin/wpcarros-emacs"; + }; }; - windowManager.session = lib.singleton { - name = "exwm"; - start = "${wpcarros-emacs}/bin/wpcarros-emacs"; + + depot.automatic-gc = { + enable = true; + interval = "1 hour"; + diskThreshold = 16; # GiB + maxFreed = 10; # GiB + preserveGenerations = "14d"; }; }; @@ -52,7 +67,7 @@ in { users.mutableUsers = true; users.users.wpcarro = { isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" ]; shell = pkgs.fish; }; |