Refactor main flake.nix a bit
This commit is contained in:
parent
de9867bbb2
commit
8c15e52f4d
1 changed files with 13 additions and 9 deletions
14
flake.nix
14
flake.nix
|
@ -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 ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue