1
0
Fork 0

Refactor main flake.nix a bit

This commit is contained in:
Daniel Kempkens 2021-12-10 22:15:13 +01:00
parent de9867bbb2
commit 8c15e52f4d

View file

@ -2,15 +2,17 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
};
outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
homeConfigurations = {
daniel = inputs.home-manager.lib.homeManagerConfiguration {
daniel = home-manager.lib.homeManagerConfiguration {
system = "x86_64-darwin";
homeDirectory = "/Users/daniel";
username = "daniel";
@ -21,14 +23,16 @@
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
in
{
nixpkgs.overlays = [
nixpkgs = {
overlays = [
overlay-neovim
];
nixpkgs.config = {
config = {
allowUnfree = true;
allowBroken = true;
};
};
imports = [ ./home.nix ];
};