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 = {
|
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 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue