dotfiles/system/shared/home-manager.nix

51 lines
949 B
Nix

{ inputs, pkgs, username, self }:
{
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = "22.05";
programs.home-manager.enable = true;
imports = [
(import ./modules/neovim.nix { inherit inputs pkgs self; })
./modules/git.nix
./modules/starship.nix
./modules/tmux.nix
./modules/zsh.nix
];
programs.bat.enable = true;
home.file."logo.txt" = {
source = pkgs.copyPathToStore "${self}/logo.txt";
target = "logo.txt";
};
programs.nnn.enable = true;
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
home.sessionPath = [ "$HOME/.config/bin" ];
xdg.configFile."ripgrep/config".text = ''
--follow
--smart-case
'';
xdg.configFile.bin = {
source = ../../bin;
recursive = true;
};
xdg.configFile.phpactor = {
source = ../../config/phpactor;
recursive = true;
};
}