nix/flake.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2022-01-28 14:25:01 +00:00
{
2022-01-29 18:43:43 +00:00
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";
};
2022-02-01 22:52:30 +00:00
outputs =
2022-02-04 12:53:04 +00:00
inputs@
2022-02-01 22:52:30 +00:00
{ self
2022-02-03 11:46:44 +00:00
, nixpkgs
2022-02-01 22:52:30 +00:00
, nixos-hardware
, home
, neovim
2022-02-04 12:53:04 +00:00
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
neovim.overlay
];
2022-02-03 11:46:44 +00:00
};
2022-02-04 12:53:04 +00:00
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 = {
#
# }
};
2022-01-28 14:25:01 +00:00
}