summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 66f48eebc7e198febd15fde6599883c051ed244f (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
35
36
37
38
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";

    home-manager = {
      # "/release-21.11" para stable
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nur.url = "github:nix-community/NUR";
  };

  outputs = { self, home-manager, nur, ... }: {
    overlay = self: super: {
      local = import ./pkgs self.local super;
    };

    homeConfigurations."ale@p-user" = home-manager.lib.homeManagerConfiguration {
      system = "x86_64-linux";
      configuration = {
        imports = [ ./home ];
        nixpkgs.overlays = [ nur.overlay self.overlay ];
      };

      username = "ale";
      homeDirectory = "/home/ale";

      # Update the state version as needed.
      # See the changelog here:
      # https://nix-community.github.io/home-manager/release-notes.html#sec-release-21.05
      stateVersion = "21.11";

      # Optionally use extraSpecialArgs
      # to pass through arguments to home.nix
    };
  };
}