Refactor main flake.nix a bit
This commit is contained in:
parent
de9867bbb2
commit
8c15e52f4d
1 changed files with 13 additions and 9 deletions
22
flake.nix
22
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,13 +23,15 @@
|
|||
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
overlay-neovim
|
||||
];
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
overlay-neovim
|
||||
];
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
allowBroken = true;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowBroken = true;
|
||||
};
|
||||
};
|
||||
|
||||
imports = [ ./home.nix ];
|
||||
|
|
Loading…
Reference in a new issue