From b5b2bd9a7d7fed0f60c35a99579e19550497d05a Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 25 Jul 2024 22:34:13 +0800 Subject: [PATCH] darwin: (blind) cleanup --- darwin/profiles/common/core/default.nix | 1 - darwin/profiles/common/core/networking.nix | 9 --------- hosts/plato/default.nix | 3 +-- hosts/plato/hardware-configuration.nix | 13 ------------- hosts/whitesteel/README.md | 5 ----- hosts/whitesteel/default.nix | 3 +-- hosts/whitesteel/hardware-configuration.nix | 10 ---------- 7 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 darwin/profiles/common/core/networking.nix delete mode 100644 hosts/plato/hardware-configuration.nix delete mode 100644 hosts/whitesteel/README.md delete mode 100644 hosts/whitesteel/hardware-configuration.nix diff --git a/darwin/profiles/common/core/default.nix b/darwin/profiles/common/core/default.nix index 0bf5754..5b30ab0 100644 --- a/darwin/profiles/common/core/default.nix +++ b/darwin/profiles/common/core/default.nix @@ -11,7 +11,6 @@ imports = [ ./nix ./anti-features.nix - ./networking.nix inputs.self.darwinModules.default inputs.home-manager.darwinModules.home-manager diff --git a/darwin/profiles/common/core/networking.nix b/darwin/profiles/common/core/networking.nix deleted file mode 100644 index e5fda1f..0000000 --- a/darwin/profiles/common/core/networking.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ - networking.dns = [ - ### AliDNS - "223.5.5.5" - "223.6.6.6" - "2400:3200::1" - "2400:3200:baba::1" - ]; -} diff --git a/hosts/plato/default.nix b/hosts/plato/default.nix index d0bfa43..e78abfc 100644 --- a/hosts/plato/default.nix +++ b/hosts/plato/default.nix @@ -3,11 +3,10 @@ imports = [ ../../darwin/profiles/desktop ../../darwin/profiles/common/opt-in/mihomo.nix - - ./hardware-configuration.nix ]; networking.hostName = "plato"; time.timeZone = "Asia/Shanghai"; system.stateVersion = 4; + nixpkgs.hostPlatform = "x86_64-darwin"; } diff --git a/hosts/plato/hardware-configuration.nix b/hosts/plato/hardware-configuration.nix deleted file mode 100644 index dec39c2..0000000 --- a/hosts/plato/hardware-configuration.nix +++ /dev/null @@ -1,13 +0,0 @@ -# iMac 18,3 (2017) -{ - networking.knownNetworkServices = [ - "Ethernet" - "Wi-Fi" - "Thunderbolt Bridge" - "Thunderbolt Bridge 2" - "iPhone USB" - ]; - - # The platform the configuration will be used on. - nixpkgs.hostPlatform = "x86_64-darwin"; -} diff --git a/hosts/whitesteel/README.md b/hosts/whitesteel/README.md deleted file mode 100644 index 46afb5c..0000000 --- a/hosts/whitesteel/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# About this device - -### Description - -`blacksteel`, but running macOS. Creative, I know. diff --git a/hosts/whitesteel/default.nix b/hosts/whitesteel/default.nix index 123dae9..fc7973c 100644 --- a/hosts/whitesteel/default.nix +++ b/hosts/whitesteel/default.nix @@ -2,11 +2,10 @@ imports = [ ../../darwin/profiles/desktop ../../darwin/profiles/common/opt-in/mihomo.nix - - ./hardware-configuration.nix ]; networking.hostName = "whitesteel"; time.timeZone = "Asia/Shanghai"; system.stateVersion = 4; + nixpkgs.hostPlatform = "x86_64-darwin"; } diff --git a/hosts/whitesteel/hardware-configuration.nix b/hosts/whitesteel/hardware-configuration.nix deleted file mode 100644 index ea8264d..0000000 --- a/hosts/whitesteel/hardware-configuration.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - networking.knownNetworkServices = [ - "Wi-Fi" - "Bluetooth PAN" - "Thunderbolt Bridge" - ]; - - # The platform the configuration will be used on. - nixpkgs.hostPlatform = "x86_64-darwin"; -}