nix/flake.nix
2022-02-04 07:53:04 -05:00

46 lines
1.1 KiB
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware";
home.url = "github:nix-community/home-manager";
home.inputs.nixpkgs.follows = "nixpkgs";
neovim.url = "github:nix-community/neovim-nightly-overlay";
neovim.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs@
{ self
, nixpkgs
, nixos-hardware
, home
, neovim
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
neovim.overlay
];
};
in {
nixosConfigurations.zaphod = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = inputs;
modules = [
home.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackagess = true;
home-manager.users.mrhedgehog = import ./home.nix;
home-manager.extraSpecialArgs = { inherit pkgs system; };
}
];
};
# homeConfigurations = {
#
# }
};
}