Add lots of packages to home manager, and include neovim derivation for building source from a specific commit on dev branch.
This commit is contained in:
parent
beb700f3fe
commit
b695b07c21
3 changed files with 104 additions and 12 deletions
19
flake.nix
19
flake.nix
|
|
@ -8,18 +8,16 @@
|
|||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
neovim = {
|
||||
url = "path:/home/nixos/dev/git/neovim-flake";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, ... }:
|
||||
outputs = { nixpkgs, home-manager, neovim, ... }:
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
|
||||
# supportedSystems = [
|
||||
# "x86_64-linux"
|
||||
# "aarch64-linux"
|
||||
# "aarch64-darwin"
|
||||
# ];
|
||||
|
||||
makeHomeConfig = {
|
||||
name,
|
||||
system,
|
||||
|
|
@ -29,11 +27,16 @@
|
|||
pkgs = import nixpkgs { inherit system; };
|
||||
modules = [
|
||||
./nix/home.nix
|
||||
./nix/local_machine.nix
|
||||
./nix/local_machine.nix
|
||||
]
|
||||
++ extraModules
|
||||
++ lib.optional (builtins.match ".*-darwin$" system != null) ./nix/darwin.nix
|
||||
++ lib.optional (builtins.match ".*-linux$" system != null) ./nix/linux.nix;
|
||||
|
||||
# Pass neovim-flake to all modules
|
||||
extraSpecialArgs = {
|
||||
neovim-flake = neovim;
|
||||
};
|
||||
};
|
||||
in {
|
||||
homeConfigurations = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue