nixos-config/sites/daisy/configuration.nix

39 lines
1.0 KiB
Nix

{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ../../configuration-desktop.nix ];
boot.initrd.supportedFilesystems = [ "zfs" ];
boot.initrd.systemd.enable = true;
services.zfs.autoScrub.enable = true;
services.zfs.trim.enable = true;
# fstrim is also enabled by nixos-hardware, but only runs for /boot
services.fprintd.enable = true;
# fix hang on initial login
security.pam.services.login.fprintAuth = false;
networking.hostName = "daisy";
networking.hostId = "293a1290";
# Set your time zone.
time.timeZone = "America/Phoenix";
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 80 443 1337 ];
networking.firewall.allowedUDPPorts = [ 1337 ];
system.stateVersion = "24.11";
services.immich.enable = true;
environment.systemPackages = [
pkgs.idapro9
pkgs.qemu_kvm
(pkgs.runCommand "OVMF-fd" {} ''
mkdir -p $out/share/FV
ln -s ${pkgs.OVMF.fd}/FV/OVMF_CODE.fd $out/share/FV/OVMF_CODE.fd
'')
pkgs.OVMF.fd
];
}