From c1d6f236747d57c7b9707ca8f6f553c90f6c6fbd Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 18 Dec 2023 14:11:31 +0800 Subject: [PATCH] darwin: keep up with nixos --- darwin/{hardware/apple/imac/18-3 => hosts/Plato}/default.nix | 1 + flake.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename darwin/{hardware/apple/imac/18-3 => hosts/Plato}/default.nix (92%) diff --git a/darwin/hardware/apple/imac/18-3/default.nix b/darwin/hosts/Plato/default.nix similarity index 92% rename from darwin/hardware/apple/imac/18-3/default.nix rename to darwin/hosts/Plato/default.nix index d952e6f..f08a03b 100644 --- a/darwin/hardware/apple/imac/18-3/default.nix +++ b/darwin/hosts/Plato/default.nix @@ -1,3 +1,4 @@ +# iMac 18,3 (2017) _: { networking.knownNetworkServices = [ "Ethernet" diff --git a/flake.nix b/flake.nix index 11945b1..a92f51a 100755 --- a/flake.nix +++ b/flake.nix @@ -163,7 +163,7 @@ }; mkDarwin = system: modules: - inputs.nixpkgs.lib.nixosSystem { + inputs.nix-darwin.lib.darwinSystem { inherit system modules; specialArgs = {inherit inputs;}; }; @@ -214,7 +214,7 @@ ./users/guanranwang/darwin/profiles/device-type/desktop ./users/guanranwang/darwin/profiles/opt-in/clash-meta-client.nix - ./darwin/hardware/apple/imac/18-3 + ./darwin/hosts/Plato { networking.hostName = "Plato";