summaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home.nix')
-rw-r--r--home.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/home.nix b/home.nix
index 89ccc9d..ce02c0d 100644
--- a/home.nix
+++ b/home.nix
@@ -1,12 +1,14 @@
{
lib,
- osConfig ? null,
...
}:
let
detectedHostname =
- if osConfig != null then osConfig.networking.hostName else builtins.getEnv "HOSTNAME";
+ if builtins.match ".*-darwin" builtins.currentSystem != null then
+ "turing"
+ else
+ builtins.getEnv "HOSTNAME";
detectedUsername = builtins.getEnv "USER";
detectedHome =
let