about summary refs log tree commit diff
path: root/flake.nix
blob: 204de9ac808804fd546d0129dc4e68e1a6f08298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  description = "Home Manager configuration of venomade";
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nix-darwin-emacs = {
      url = "github:nix-giant/nix-darwin-emacs/065050b9e06a30c01b41539b75464fff972fecd6";
    };
  };
  outputs =
    { nixpkgs, home-manager, nix-darwin-emacs, ... }:
    let
      mkHome = system:
        let
          pkgs = nixpkgs.legacyPackages.${system};
        in
        home-manager.lib.homeManagerConfiguration {
          inherit pkgs;
          modules = [ ./home.nix ];
          extraSpecialArgs = {
            inherit system nix-darwin-emacs;
          };
        };
    in
    {
      homeConfigurations = {
        "venomade"          = mkHome "aarch64-linux";
        "venomade-darwin"   = mkHome "aarch64-darwin";
      };
    };
}