about summary refs log tree commit diff
path: root/hosts/commons/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/commons/default.nix')
-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;
+  };
+}