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
68
flake.lock
generated
68
flake.lock
generated
|
|
@ -1,5 +1,23 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -20,7 +38,39 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"neovim": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1737307637,
|
||||||
|
"narHash": "sha256-lfx4/4SEtpybaHj5iIFl05XEuFyem7zTReE5pK5F8Bo=",
|
||||||
|
"path": "/home/nixos/dev/git/neovim-flake",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "/home/nixos/dev/git/neovim-flake",
|
||||||
|
"type": "path"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1737110817,
|
||||||
|
"narHash": "sha256-DSenga8XjPaUV5KUFW/i3rNkN7jm9XmguW+qQ1ZJTR4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "041c867bad68dfe34b78b2813028a2e2ea70a23c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736883708,
|
"lastModified": 1736883708,
|
||||||
"narHash": "sha256-uQ+NQ0/xYU0N1CnXsa2zghgNaOPxWpMJXSUJJ9W7140=",
|
"narHash": "sha256-uQ+NQ0/xYU0N1CnXsa2zghgNaOPxWpMJXSUJJ9W7140=",
|
||||||
|
|
@ -39,7 +89,23 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"neovim": "neovim",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
17
flake.nix
17
flake.nix
|
|
@ -8,18 +8,16 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
neovim = {
|
||||||
|
url = "path:/home/nixos/dev/git/neovim-flake";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }:
|
outputs = { nixpkgs, home-manager, neovim, ... }:
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
# supportedSystems = [
|
|
||||||
# "x86_64-linux"
|
|
||||||
# "aarch64-linux"
|
|
||||||
# "aarch64-darwin"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
makeHomeConfig = {
|
makeHomeConfig = {
|
||||||
name,
|
name,
|
||||||
system,
|
system,
|
||||||
|
|
@ -34,6 +32,11 @@
|
||||||
++ extraModules
|
++ extraModules
|
||||||
++ lib.optional (builtins.match ".*-darwin$" system != null) ./nix/darwin.nix
|
++ lib.optional (builtins.match ".*-darwin$" system != null) ./nix/darwin.nix
|
||||||
++ lib.optional (builtins.match ".*-linux$" system != null) ./nix/linux.nix;
|
++ lib.optional (builtins.match ".*-linux$" system != null) ./nix/linux.nix;
|
||||||
|
|
||||||
|
# Pass neovim-flake to all modules
|
||||||
|
extraSpecialArgs = {
|
||||||
|
neovim-flake = neovim;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
|
|
|
||||||
27
nix/home.nix
27
nix/home.nix
|
|
@ -1,13 +1,14 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, neovim-flake, ... }: {
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
neovim
|
neovim-flake.packages.${system}.neovim
|
||||||
fzf
|
fzf
|
||||||
bat
|
bat
|
||||||
git
|
git
|
||||||
|
|
@ -21,6 +22,28 @@
|
||||||
jq
|
jq
|
||||||
starship
|
starship
|
||||||
fastfetch
|
fastfetch
|
||||||
|
clang
|
||||||
|
clang-tools
|
||||||
|
nixfmt-rfc-style
|
||||||
|
luajit
|
||||||
|
zoxide
|
||||||
|
rustup
|
||||||
|
zig
|
||||||
|
zls
|
||||||
|
nil
|
||||||
|
lldb
|
||||||
|
gopls
|
||||||
|
delve
|
||||||
|
golangci-lint
|
||||||
|
cmake
|
||||||
|
cmake-language-server
|
||||||
|
cmake-format
|
||||||
|
cmake-lint
|
||||||
|
python313Packages.debugpy
|
||||||
|
pyright
|
||||||
|
lua-language-server
|
||||||
|
gnumake
|
||||||
|
ninja
|
||||||
];
|
];
|
||||||
file = {
|
file = {
|
||||||
".zshrc".source = ../zsh/.zshrc;
|
".zshrc".source = ../zsh/.zshrc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue