2023-02-09 07:31:10 +01:00
|
|
|
{ inputs, lib, pkgs, config, outputs, colorscheme, ... }:
|
2023-01-10 02:38:06 +01:00
|
|
|
let
|
2023-01-10 16:05:48 +01:00
|
|
|
# Extra modules to import
|
2023-01-10 02:38:06 +01:00
|
|
|
imports = [
|
|
|
|
inputs.base16.homeManagerModule
|
2023-01-10 20:39:33 +01:00
|
|
|
inputs.homeage.homeManagerModules.homeage
|
2023-01-10 16:05:48 +01:00
|
|
|
# inputs.impermanence.nixosModules.home-manager.impermanence
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
../features/cli
|
|
|
|
../features/neovim
|
|
|
|
];
|
|
|
|
|
2023-01-10 16:05:48 +01:00
|
|
|
# Extra overlays to add
|
|
|
|
overlays = [
|
|
|
|
inputs.neovim-nightly-overlay.overlay
|
2023-02-28 13:11:37 +01:00
|
|
|
inputs.agenix.overlay
|
2023-01-10 16:05:48 +01:00
|
|
|
];
|
2023-01-10 02:38:06 +01:00
|
|
|
in
|
|
|
|
{
|
2023-01-10 16:05:48 +01:00
|
|
|
# Import all modules defined in modules/home-manager
|
2023-01-10 20:39:33 +01:00
|
|
|
imports = builtins.attrValues outputs.homeManagerModules ++ imports;
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
# Add all overlays defined in the overlays directory
|
2023-01-10 16:05:48 +01:00
|
|
|
overlays = builtins.attrValues outputs.overlays ++ overlays;
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowUnfreePredicate = (_: true);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Nicely reload system units when changing configs
|
|
|
|
systemd.user.startServices = "sd-switch";
|
|
|
|
|
|
|
|
# Enable the home-manager and git clis
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
git.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-01-10 16:05:48 +01:00
|
|
|
# Set default theme
|
2023-02-09 07:31:10 +01:00
|
|
|
scheme = lib.mkDefault colorscheme;
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
# Set reasonable defaults for some settings
|
|
|
|
home = {
|
|
|
|
username = lib.mkDefault "adrielus";
|
|
|
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
|
|
stateVersion = lib.mkDefault "22.11";
|
|
|
|
};
|
2023-01-10 20:39:33 +01:00
|
|
|
|
|
|
|
# Where homeage should look for our ssh key
|
|
|
|
homeage.identityPaths = [ "~/.ssh/id_ed25519" ];
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|