diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-10 19:13:56 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-10 19:13:56 -0800 |
commit | 2c00574055d0a8b86bec058ba342ab6ba323e805 (patch) | |
tree | 6f28edea1035acdfe73664603637d7ce44215456 | |
parent | home-manager: set the hostname (diff) | |
download | world-2c00574055d0a8b86bec058ba342ab6ba323e805.tar.gz |
hosts: common configuration across all hosts
-rw-r--r-- | hosts/commons/default.nix | 12 |
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; + }; +} |