infra/nix/home-manager/programs/homeshick.nix

33 lines
812 B
Nix
Raw Normal View History

2024-11-15 10:17:56 +01:00
{ pkgs, config, ... }:
let
in
# TODO: clean up the impurity in here
2023-02-07 18:24:28 +01:00
{
home.sessionVariables.HOMESHICK_DIR = "${pkgs.homeshick}";
2024-11-15 10:17:56 +01:00
home.activation.bootstrapRepos = config.lib.dag.entryAfter [ "writeBoundary" ] ''
$DRY_RUN_CMD ${pkgs.writeScript "activation-script" ''
set -e
echo home-manager path is ${config.home.path}
echo home is $HOME
2024-11-15 10:17:56 +01:00
source ${pkgs.homeshick}/homeshick.sh
type homeshick
2024-11-15 10:17:56 +01:00
# echo Updating homeshick
# ln -sfT ${pkgs.homeshick} "$HOMESICK_REPOS"/.homeshick
# mv -Tf "$HOMESICK_REPOS"/{.,}homeshick
''};
2023-02-07 18:24:28 +01:00
'';
2023-02-07 18:24:28 +01:00
nixpkgs.config = {
2024-11-15 10:17:56 +01:00
packageOverrides =
pkgs: with pkgs; {
2022-10-31 11:04:38 +01:00
homeshick = builtins.fetchGit {
url = "https://github.com/andsens/homeshick.git";
ref = "master";
};
};
};
}