toaster: basic config, nixpkgs-fmt
This commit is contained in:
parent
d3015fdbda
commit
f690251f13
10 changed files with 259 additions and 24 deletions
19
hosts/toaster/zfs.nix
Normal file
19
hosts/toaster/zfs.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue