toaster: basic config, nixpkgs-fmt

This commit is contained in:
Grigory Shipunov 2023-01-09 23:07:46 +01:00
parent d3015fdbda
commit f690251f13
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
10 changed files with 259 additions and 24 deletions

19
hosts/toaster/zfs.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, pkgs, ... }: {
services.fstrim.enable = true;
services.zfs = {
autoSnapshot.enable = true;
trim.enable = true;
autoScrub = {
enable = true;
pools = [ "toasterpool" ];
};
};
networking.hostId = "dca22577";
boot = {
kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
supportedFilesystems = [ "zfs" ];
kernelParams = [ "nohibernate" ];
plymouth.enable = false;
tmpOnTmpfs = true;
};
}