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.

26 lines
968 B

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. # Enable NFS export for kvm storage.
  15. services.nfs.server.enable = true;
  16. services.nfs.server.exports = ''
  17. /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)
  18. '';
  19. # Do not change the following.
  20. system.stateVersion = "23.11";
  21. }