feat: adds zfs pool to boot, adds zfs to pkgs, adds dandelion-specific services, adds machine-specific variables

This commit is contained in:
Ahwx 2025-03-22 22:46:55 +01:00
parent 018442bbc3
commit cdf68775f8

View file

@ -2,7 +2,9 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./variables.nix
./../../modules/core/default.server.nix ./../../modules/core/default.server.nix
./../../modules/services/dandelion.nix
]; ];
networking.hostName = "dandelion"; networking.hostName = "dandelion";
@ -15,7 +17,8 @@
time.timeZone = "Europe/Amsterdam"; time.timeZone = "Europe/Amsterdam";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
pkgs.kitty.terminfo kitty.terminfo
zfs
]; ];
boot = { boot = {
@ -23,5 +26,20 @@
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
supportedFilesystems = [ "zfs" ];
}; };
networking.hostId = "8a6b2565";
services.zfs = {
autoScrub.enable = true;
trim.enable = true;
};
boot.zfs.extraPools = [ "terrabite" ];
# fileSystems."/terrabite/main" = {
# device = "terrabite/main";
# fsType = "zfs";
# };
} }