tvl-depot/users/glittershark/system/home/default.nix
Griffin Smith 1c98437079 feat(gs/home): Add chupacabra home-manager to CI targets
Also move fcitx to system, since it's a nixos thing not a home-manager
thing.

Change-Id: I3e047494a478520e939d48fc72cc91a2d797bf74
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1969
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
2020-09-09 16:09:43 +00:00

30 lines
743 B
Nix

{ pkgs, depot, lib, ... }:
with lib;
rec {
nixpkgs = import pkgs.nixpkgsSrc {};
home-manager = (fetchTarball {
url = "https://github.com/rycee/home-manager/archive/152769aed96d4d6f005ab40daf03ec4f5102c763.tar.gz";
sha256 = "10svwspmsf46rijzsh0h9nmz1mq2998wcml8yp36mwksgi8695pc";
});
home = confPath: (import "${home-manager}/modules" {
pkgs = nixpkgs;
configuration = { config, lib, ... }: {
imports = [confPath];
_module.args.pkgs = mkForce
(import pkgs.nixpkgsSrc (filterAttrs (n: v: v != null) config.nixpkgs));
lib.depot = depot;
};
});
chupacabra = home ./machines/chupacabra.nix;
chupacabraHome = chupacabra.activation-script;
meta.targets = [ "chupacabraHome" ];
}