{ 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, nixpkgs, home-manager, nur, ... }: let pkgSet = pkgs: import ./pkgs { inherit pkgs; util = import ./util pkgs.lib; }; in { packages."x86_64-linux" = pkgSet nixpkgs.legacyPackages."x86_64-linux"; overlay = self: super: { local = pkgSet 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 }; }; }