From b34079150f0d1842e013c414c7a97607c7ecb1c3 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Wed, 7 Feb 2024 00:15:11 +0100 Subject: macos patch --- machines/work.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 machines/work.nix (limited to 'machines') diff --git a/machines/work.nix b/machines/work.nix new file mode 100644 index 0000000..c987b79 --- /dev/null +++ b/machines/work.nix @@ -0,0 +1,34 @@ +{ self, pkgs, ... }: { + # List packages installed in system profile. To search by name, run: + # $ nix-env -qaP | grep wget + environment.systemPackages = + [ pkgs.vim + pkgs.podman + pkgs.qemu + ]; + + services.tailscale.enable = true; + + # Auto upgrade nix package and the daemon service. + services.nix-daemon.enable = true; + # nix.package = pkgs.nix; + + # Necessary for using flakes on this system. + nix.settings.experimental-features = "nix-command flakes"; + + nix.extraOptions = ''extra-platforms = x86_64-darwin aarch64-darwin ''; + + # Create /etc/zshrc that loads the nix-darwin environment. + programs.zsh.enable = true; # default shell on catalina + # programs.fish.enable = true; + + # Set Git commit hash for darwin-version. + system.configurationRevision = self.rev or self.dirtyRev or null; + + # Used for backwards compatibility, please read the changelog before changing. + # $ darwin-rebuild changelog + system.stateVersion = 4; + + # The platform the configuration will be used on. + nixpkgs.hostPlatform = "aarch64-darwin"; +} -- cgit v1.2.3