Files
vmimages/home-manager/default.nix
2023-11-30 14:48:39 +00:00

128 lines
2.8 KiB
Nix

{
lib,
outputs,
pkgs,
config,
hostName,
...
}: {
# imports = [
#./global.nix
#"../modules/vscode-server/home.nix"
# ../modules/home-manager/beets
# ../modules/home-manager/keybase
# ../modules/home-manager/ssh-proxys
# ];
home.username = "sstent";
home.homeDirectory = "/home/sstent";
home.stateVersion = "23.05";
sops = {
age.sshKeyPaths = ["/home/sstent/.ssh/id_ed25519"];
defaultSopsFile = ../secrets/user-secrets.yaml;
secrets = {
mrconfig = {
sopsFile = ../secrets/user_dotfiles/mrconfig;
format = "binary";
path = "${config.home.homeDirectory}/.mrconfig";
};
};
};
custom = {
ssh-proxy.enable = false;
beets.enable = true;
keybase.enable = true;
};
###dotfiles path variable
##VSCode
#services.vscode-server.enable = true;
#services.vscode-server.enableFHS = true;
#services.vscode-server.nodejsPackage = pkgs.nodejs-18_x;
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = with pkgs; [
autossh
azure-cli
bitwarden-cli
ansible
# sshpass
(import ./python-packages.nix {pkgs = pkgs;})
pyinfra
sshpass
nmap
nomad
consul
terraform
wget
curl
p7zip
#git-run
mr
perl
# beets
# qemu_kvm
# nixos-generators
nixpkgs-fmt
# deploy-rs
gnumake
];
programs = {
dircolors.enable = true;
go.enable = true;
gpg.enable = true;
htop.enable = true;
jq.enable = true;
less.enable = true;
man.enable = true;
nix-index.enable = true;
yt-dlp.enable = true;
bash = {
enable = true;
historyControl = ["ignorespace"];
shellOptions = ["histappend"];
sessionVariables = {
DOCKER_HOST = "tcp://192.168.1.225:2375";
NOMAD_ADDR = "http://192.168.1.250:4646";
TERM = "xterm-256color";
ANSIBLE_HOST_KEY_CHECKING = "False";
HSTR_CONFIG = "hicolor";
PROMPT_COMMAND = "history -a;"; # ensure synchronization between bash memory and history file
SSH_AUTH_SOCK = "/home/sstent/.ssh/wsl-ssh-agent.sock";
};
bashrcExtra = ''
if [ -e /home/sstent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/sstent/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
# ssh-add -l
export PATH=$PATH:/bin #Fix for wslpath
'';
};
git = {
enable = true;
userName = "sstent";
userEmail = "stuart.stent@gmail.com";
extraConfig = {pull.rebase = true;};
};
ssh = {
enable = true;
matchBlocks = {
"*" = {
identityFile = "~/.ssh/id_rsa";
};
"github.com" = {
user = "git";
identityFile = "~/.ssh/id_rsa_git";
};
"odroid*" = {
user = "root";
};
};
};
};
}