about summary refs log blame commit diff
path: root/users/glittershark/system/home/default.nix
blob: 1e5ed98255b12b82fb9fa12b3e733a2ef599debe (plain) (tree)
1
2
3
4
5
6
7
8






                                      
                                                                  








                                                                                
     

                                              



                                                
 
{ pkgs, depot, lib, ... }:

with lib;

rec {
  nixpkgs = import pkgs.nixpkgsSrc {};

  home = confPath: (import "${nixpkgs.home-manager.src}/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" ];
}