about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-10 19:13:56 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-10 19:13:56 -0800
commit2c00574055d0a8b86bec058ba342ab6ba323e805 (patch)
tree6f28edea1035acdfe73664603637d7ce44215456
parenthome-manager: set the hostname (diff)
downloadworld-2c00574055d0a8b86bec058ba342ab6ba323e805.tar.gz
hosts: common configuration across all hosts
-rw-r--r--hosts/commons/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/hosts/commons/default.nix b/hosts/commons/default.nix
new file mode 100644
index 0000000..d49247a
--- /dev/null
+++ b/hosts/commons/default.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, system, inputs, ... }:
+
+{
+  environment = {
+    # Activate home-manager environment, if not already enabled
+    loginShellInit = ''
+      [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
+    '';
+    homeBinInPath = true;
+    localBinInPath = true;
+  };
+}