nixos configurations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

4 months ago
4 months ago
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page, on
  3. # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
  4. { config, lib, pkgs, settings, ... }:
  5. {
  6. # Enable flakes for package pinning.
  7. nix.settings.experimental-features = [ "nix-command" "flakes" ];
  8. # Import modules.
  9. imports = [
  10. ../../hardware-configuration.nix
  11. ../../profiles/${settings.profile}.nix
  12. ../../modules/nixos/zfs.nix
  13. ];
  14. # Fix AMD SATA bug?
  15. boot.kernelParams = [
  16. "iommu=soft"
  17. ];
  18. # Enable NFS export for kvm storage.
  19. services.nfs.server.enable = true;
  20. services.nfs.server.exports = ''
  21. /mnt/kvm 10.0.100.5(rw,async,no_subtree_check,no_root_squash,fsid=1) 10.0.100.7(rw,async,no_subtree_check,no_root_squash,fsid=1) 10.0.100.8(rw,async,no_subtree_check,no_root_squash,fsid=1) 10.0.100.13(rw,async,no_subtree_check,no_root_squash,fsid=1)
  22. '';
  23. # Do not change the following.
  24. system.stateVersion = "23.11";
  25. }