t14_legacy_config/flake.nix
Fabián Montero 9fdb1e334d update
2022-07-14 16:09:48 -06:00

37 lines
939 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager/release-22.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {self, nixpkgs, home-manager, nur, ...}:
let
packages = import ./pkgs;
in
{
nixosConfigurations.posixlycorrect = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ( import ./base ) ];
};
homeConfigurations."fabian@posixlycorrect" = home-manager.lib.homeManagerConfiguration {
system = "x86_64-linux";
configuration = import ./home {inherit self nixpkgs;};
username = "fabian";
homeDirectory = "/home/fabian";
stateVersion = "21.11";
};
packages.x86_64-linux = packages nixpkgs.legacyPackages.x86_64-linux;
overlay = self: super: {
local = packages super;
};
};
}