t14_legacy_config/flake.nix

37 lines
939 B
Nix
Raw Normal View History

2022-03-17 08:05:27 +01:00
{
inputs = {
2022-06-07 04:17:39 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
2022-03-17 08:05:27 +01:00
nur.url = "github:nix-community/NUR";
home-manager = {
2022-07-15 00:09:48 +02:00
url = "github:nix-community/home-manager/release-22.05";
2022-03-17 08:05:27 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {self, nixpkgs, home-manager, nur, ...}:
let
packages = import ./pkgs;
in
{
2022-03-17 08:05:27 +01:00
nixosConfigurations.posixlycorrect = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ( import ./base ) ];
};
2022-03-17 09:56:03 +01:00
homeConfigurations."fabian@posixlycorrect" = home-manager.lib.homeManagerConfiguration {
system = "x86_64-linux";
configuration = import ./home {inherit self nixpkgs;};
2022-03-17 09:56:03 +01:00
username = "fabian";
homeDirectory = "/home/fabian";
stateVersion = "21.11";
};
packages.x86_64-linux = packages nixpkgs.legacyPackages.x86_64-linux;
overlay = self: super: {
local = packages super;
};
2022-03-17 08:05:27 +01:00
};
}