From ca7cd9dffbf427f7bcafa25ffc83597a6aaca013 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 26 Feb 2024 13:18:01 +0800 Subject: [PATCH] hosts: add whitesteel --- darwin/profiles/common/core/nix/default.nix | 2 +- flake.nix | 1 + hosts/whitesteel/README.md | 5 +++++ hosts/whitesteel/default.nix | 12 ++++++++++++ hosts/whitesteel/hardware-configuration.nix | 12 ++++++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 hosts/whitesteel/README.md create mode 100644 hosts/whitesteel/default.nix create mode 100644 hosts/whitesteel/hardware-configuration.nix diff --git a/darwin/profiles/common/core/nix/default.nix b/darwin/profiles/common/core/nix/default.nix index 8af348c..667af21 100644 --- a/darwin/profiles/common/core/nix/default.nix +++ b/darwin/profiles/common/core/nix/default.nix @@ -2,6 +2,6 @@ imports = [ ./flake.nix ./nix.nix - ./gc.nix + #./gc.nix # wtf is single user mode ]; } diff --git a/flake.nix b/flake.nix index 0905dd9..cb9adcc 100755 --- a/flake.nix +++ b/flake.nix @@ -136,6 +136,7 @@ ### Darwin darwinConfigurations = { "plato" = mkDarwin "x86_64-darwin" [./hosts/plato]; + "whitesteel" = mkDarwin "x86_64-darwin" [./hosts/whitesteel]; }; }; } diff --git a/hosts/whitesteel/README.md b/hosts/whitesteel/README.md new file mode 100644 index 0000000..46afb5c --- /dev/null +++ b/hosts/whitesteel/README.md @@ -0,0 +1,5 @@ +# About this device + +### Description + +`blacksteel`, but running macOS. Creative, I know. diff --git a/hosts/whitesteel/default.nix b/hosts/whitesteel/default.nix new file mode 100644 index 0000000..aa2fdf9 --- /dev/null +++ b/hosts/whitesteel/default.nix @@ -0,0 +1,12 @@ +{...}: { + imports = [ + ../../darwin/profiles/desktop + ../../darwin/profiles/common/opt-in/clash-meta-client.nix + + ./hardware-configuration.nix + ]; + + networking.hostName = "whitesteel"; + time.timeZone = "Asia/Shanghai"; + system.stateVersion = 4; +} diff --git a/hosts/whitesteel/hardware-configuration.nix b/hosts/whitesteel/hardware-configuration.nix new file mode 100644 index 0000000..f83df99 --- /dev/null +++ b/hosts/whitesteel/hardware-configuration.nix @@ -0,0 +1,12 @@ +{ + 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"; +}