Compare commits

...

2 commits

2 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,7 @@
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
randomizedDelaySec = "45min"; randomizedDelaySec = "45min";
options = "--delete-older-than 30d";
}; };
nix.optimise.automatic = true; nix.optimise.automatic = true;
services.fstrim.enable = true; services.fstrim.enable = true;

View file

@ -1,5 +1,8 @@
{ config, lib, pkgs, inputs, ... }: { config, lib, pkgs, inputs, ... }:
let
inherit (lib) mkForce;
in
{ {
imports = [ imports = [
./filesystems.nix ./filesystems.nix
@ -23,6 +26,11 @@
console.keyMap = "uk"; console.keyMap = "uk";
services.xserver.xkb.layout = "gb"; services.xserver.xkb.layout = "gb";
# tohru does not have the resources to run these under other load and is generally powered off when not in use.
# instead, just run `nix-collect-garbage -d` and `nix-store --optimise` every so often.
nix.gc.automatic = mkForce false;
nix.optimise.automatic = mkForce false;
fountain.users.qenya.enable = true; fountain.users.qenya.enable = true;
age.secrets.user-password-tohru-qenya.file = ../../secrets/user-password-tohru-qenya.age; age.secrets.user-password-tohru-qenya.file = ../../secrets/user-password-tohru-qenya.age;
users.users.qenya.hashedPasswordFile = config.age.secrets.user-password-tohru-qenya.path; users.users.qenya.hashedPasswordFile = config.age.secrets.user-password-tohru-qenya.path;