summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/work.nix34
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";
+}