Move home-manager to nixos config for easier multi system config

This commit is contained in:
BuyMyMojo 2025-04-02 09:36:08 +11:00
parent fdc23266f3
commit cd265fa1a7
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10 changed files with 700 additions and 19 deletions

View file

@ -0,0 +1,70 @@
{
config,
pkgs,
unstable,
inputs,
lib,
...
}:
let
withExtraPackages =
pkg: extraPackages:
pkgs.runCommand "${pkg.name}-wrapped" { nativeBuildInputs = [ pkgs.makeWrapper ]; } ''
for exe in ${lib.getBin pkg}/bin/*; do
makeWrapper $exe $out/bin/$(basename $exe) --prefix PATH : ${lib.makeBinPath extraPackages}
done
'';
in
{
imports = [
inputs.bellado.homeManagerModules.default
];
home.packages =
with unstable;
with inputs;
[
];
programs.neovim = {
# package = unstable.neovim;
enable = true;
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
lazy-nvim
];
};
programs.git = {
enable = true;
userName = "BuyMyMojo";
userEmail = "hello+git@buymymojo.net";
lfs.enable = true;
signing.key = "E7B7B8D20C8753C077F9B17119AB7AA462B8AB3B";
signing.signByDefault = true;
extraConfig = {
init = {
defaultBranch = "main";
};
};
};
programs.bellado = {
enable = true;
enableAliases = true;
};
programs.ssh.enable = true;
programs.ssh.addKeysToAgent = "yes";
# === shells ===
programs.bash.enable = true;
programs.fish.enable = true;
}