From 4785953d4610384c05e9c2695c35c5f76f1628ae Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Wed, 31 Jul 2024 17:14:01 +0200 Subject: [PATCH] feat(nix): add macbook 2023 host --- flake.nix | 6 ++++++ hosts/macbook-2023/configuration.nix | 19 +++++++++++++++++++ hosts/macbook-2023/home.nix | 15 +++++++++++++++ hosts/macbook-2023/homebrew.nix | 15 +++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 hosts/macbook-2023/configuration.nix create mode 100644 hosts/macbook-2023/home.nix create mode 100644 hosts/macbook-2023/homebrew.nix diff --git a/flake.nix b/flake.nix index cd3a260..f9daf0d 100644 --- a/flake.nix +++ b/flake.nix @@ -54,6 +54,12 @@ hostname = "mac-mini"; username = "kogakure"; }; + "macbook-2023" = mkDarwinConfig { + system = "aarch64-darwin"; + hostname = "macbook-2023"; + username = "stefan.imhoff"; + }; }; }; } + diff --git a/hosts/macbook-2023/configuration.nix b/hosts/macbook-2023/configuration.nix new file mode 100644 index 0000000..dc6f06e --- /dev/null +++ b/hosts/macbook-2023/configuration.nix @@ -0,0 +1,19 @@ +{ config, ... }: + +{ + imports = [ + ../../darwin + ]; + + users.users.kogakure = { + name = "stefan.imhoff"; + home = "/Users/stefan.imhoff"; + }; + + nixpkgs.hostPlatform = "aarch64-darwin"; + + # Screenshots + system.defaults.screencapture.location = "${config.users.users."stefan.imhoff".home}/Dropbox/Bilder/Screenshots"; + + homebrew = import ./homebrew.nix; +} diff --git a/hosts/macbook-2023/home.nix b/hosts/macbook-2023/home.nix new file mode 100644 index 0000000..36c07e3 --- /dev/null +++ b/hosts/macbook-2023/home.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: + +{ + imports = [ + ../../home + ]; + + # Services + services.yabai.enable = true; + services.skhd.enable = true; + + # The home.packages option allows you to install Nix packages into your + # environment. + home.packages = with pkgs; [ ]; +} diff --git a/hosts/macbook-2023/homebrew.nix b/hosts/macbook-2023/homebrew.nix new file mode 100644 index 0000000..3e95198 --- /dev/null +++ b/hosts/macbook-2023/homebrew.nix @@ -0,0 +1,15 @@ +{ + onActivation.cleanup = "uninstall"; + taps = [ ]; + brews = [ ]; + casks = [ + "microsoft-excel" + "microsoft-onenote" + "microsoft-outlook" + "microsoft-powerpoint" + "microsoft-remote-desktop" + "microsoft-word" + "onedrive" + ]; + masApps = { }; +}