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