2023-07-26 21:46:31 +00:00
|
|
|
{ inputs, outputs, lib, config, pkgs, ... }: {
|
2023-07-23 18:44:51 +00:00
|
|
|
imports = [
|
|
|
|
../lib/tmux.nix
|
|
|
|
../lib/vim.nix
|
|
|
|
];
|
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowUnfreePredicate = (_: true);
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
home = {
|
|
|
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
|
|
stateVersion = lib.mkDefault "23.05";
|
2023-07-23 18:44:51 +00:00
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
file = {
|
2023-07-23 18:44:51 +00:00
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
};
|
2023-07-23 18:44:51 +00:00
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
packages = with pkgs; [
|
|
|
|
babelfish
|
|
|
|
hugo
|
|
|
|
packer
|
|
|
|
powershell
|
|
|
|
terraform
|
|
|
|
tldr
|
|
|
|
vault
|
|
|
|
];
|
2023-07-23 18:44:51 +00:00
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
sessionVariables = {
|
|
|
|
EDITOR = "vim";
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-26 21:46:31 +00:00
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
|
2023-07-27 14:50:48 +00:00
|
|
|
direnv = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
2023-07-26 21:46:31 +00:00
|
|
|
|
|
|
|
fish = {
|
|
|
|
enable = true;
|
|
|
|
shellInit = "source ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish";
|
|
|
|
functions = {
|
|
|
|
switch-home = "home-manager switch -b backup --flake ${config.home.homeDirectory}/.dotfiles#$USER@$(hostname -s)";
|
|
|
|
};
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
2023-07-26 21:46:31 +00:00
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
delta.enable = true;
|
|
|
|
userEmail = lib.mkDefault "john@bowdre.net";
|
|
|
|
userName = lib.mkDefault "John Bowdre";
|
|
|
|
extraConfig = {
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
pull.rebase = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
htop.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
jq.enable = lib.mkDefault true;
|
|
|
|
|
2023-07-23 18:44:51 +00:00
|
|
|
};
|
2023-07-26 21:46:31 +00:00
|
|
|
|
|
|
|
targets.genericLinux.enable = true;
|
2023-07-23 18:44:51 +00:00
|
|
|
}
|