feat: adds sunflower host

This commit is contained in:
Ahwx 2025-10-20 12:14:46 +02:00
parent 0553f5bbf3
commit f7c36a91b8
4 changed files with 139 additions and 0 deletions

View file

@ -0,0 +1,79 @@
{
lib,
pkgs,
config,
...
}:
{
imports = [
./hardware-configuration.nix
./variables.nix
./../../modules/core/default.server.nix
./../../modules/services/sunflower.nix
];
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
liv.server.enable = true;
nixpkgs.config.permittedInsecurePackages = [
"jitsi-meet-1.0.8043"
"olm-3.2.16"
];
networking = {
hostName = "sunflower";
firewall = {
allowedTCPPorts = [
5201
];
allowedUDPPorts = [
5201
];
};
};
environment.systemPackages = with pkgs; [
kitty.terminfo
zfs
];
boot = {
loader = {
grub = {
enable = true;
device = "/dev/sdb";
useOSProber = true;
};
};
supportedFilesystems = [ "zfs" ];
};
networking.hostId = "6b57f171";
#services.zfs = {
# autoScrub.enable = true;
# autoScrub.interval = "weekly";
# trim.enable = true;
#};
#boot.zfs.extraPools = [
# "spinners"
#];
# fileSystems = {
# "/spinners/rootvol" = {
# device = "spinners/rootvol";
# fsType = "zfs";
# };
# "/spinners/ahwx" = {
# device = "spinners/ahwx";
# fsType = "zfs";
# };
# "/spinners/violet" = {
# device = "spinners/violet";
# fsType = "zfs";
# };
# };
}