diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-02-07 00:15:11 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-02-07 00:15:11 +0100 |
| commit | b34079150f0d1842e013c414c7a97607c7ecb1c3 (patch) | |
| tree | 7404d95bc3c013fb98379df9e3aff962671243dd /machines | |
| parent | 19c53f08b2476d2e3d0cdb506a3896f6f9738a68 (diff) | |
macos patch
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/work.nix | 34 |
1 files changed, 34 insertions, 0 deletions
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"; +} |
