1
0

default.nix 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. { outputs, pkgs, ... }:
  2. {
  3. imports = [
  4. outputs.modules.global.nix-config
  5. ./system.nix
  6. ./software.nix
  7. ] ++ (builtins.attrValues outputs.modules.darwin);
  8. # NOTE: might be valuable to put this in it's own file
  9. # nix.linux-builder = {
  10. # enable = true;
  11. # ephemeral = true;
  12. # package = pkgs.darwin.linux-builder;
  13. # supportedFeatures = [ "kvm" "benchmark" "big-parallel" "nixos-test" ];
  14. # maxJobs = 4;
  15. # config = {
  16. # # nix.settings.sandbox = false;
  17. # virtualisation = {
  18. # darwin-builder = {
  19. # diskSize = 40 * 1024;
  20. # memorySize = 8 * 1024;
  21. # };
  22. # cores = 6;
  23. # };
  24. # };
  25. # };
  26. # nix.settings.system-features = [ "nixos-test" "apple-virt" "nixos-test" "benchmark" "big-parallel" "kvm" ];
  27. # nix.settings.extra-platforms = [ "aarch64-linux" ];
  28. # launchd.daemons.linux-builder = {
  29. # serviceConfig = {
  30. # StandardOutPath = "/var/log/darwin-builder.log";
  31. # StandardErrorPath = "/var/log/darwin-builder.log";
  32. # };
  33. # };
  34. # NOTE: this seems to be needed to make nix work in fish
  35. programs.fish = {
  36. enable = true;
  37. vendor = {
  38. completions.enable = true;
  39. config.enable = true;
  40. functions.enable = true;
  41. };
  42. };
  43. # TODO: move into module:
  44. # system.activationScripts.extraActivation.text = lib.mkAfter ''
  45. # # disable spotlight
  46. # echo "disable spotlight..." >&2
  47. # mdutil -i off /
  48. # '';
  49. # TODO:
  50. # - Proton Mail Bridge
  51. # - Proton Drive set up home folders
  52. programs = {
  53. nix-index.enable = true;
  54. gnupg.agent.enable = true;
  55. };
  56. users.users.thomas.home = "/Users/thomas";
  57. networking = {
  58. hostName = "meili";
  59. remote-login = true;
  60. };
  61. time.timeZone = "America/Los_Angeles";
  62. system.stateVersion = 4;
  63. }