2023-02-26 23:10:06 +01:00
|
|
|
{ home-manager, runCommand }:
|
2017-11-24 12:31:08 +01:00
|
|
|
|
2021-12-14 18:44:47 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
hmBashLibInit = ''
|
|
|
|
export TEXTDOMAIN=home-manager
|
|
|
|
export TEXTDOMAINDIR=${home-manager}/share/locale
|
|
|
|
source ${home-manager}/share/bash/home-manager.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
in runCommand "home-manager-install" {
|
2023-02-26 23:10:06 +01:00
|
|
|
propagatedBuildInputs = [ home-manager ];
|
2020-02-02 00:39:17 +01:00
|
|
|
preferLocalBuild = true;
|
|
|
|
shellHookOnly = true;
|
2023-02-26 23:10:06 +01:00
|
|
|
shellHook = "exec ${home-manager}/bin/home-manager init --switch --no-flake";
|
2020-02-02 00:39:17 +01:00
|
|
|
} ''
|
2021-12-14 18:44:47 +01:00
|
|
|
${hmBashLibInit}
|
|
|
|
_iError 'This derivation is not buildable, please run it using nix-shell.'
|
2020-02-02 00:39:17 +01:00
|
|
|
exit 1
|
|
|
|
''
|