From 2c00574055d0a8b86bec058ba342ab6ba323e805 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 10 Feb 2022 19:13:56 -0800 Subject: hosts: common configuration across all hosts --- hosts/commons/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hosts/commons/default.nix (limited to 'hosts') 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; + }; +} -- cgit 1.4.1