liminalOS/reference/users/youwen/hm.nix

102 lines
2.6 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports = [
./secrets
./neomutt.nix
];
home = {
username = "youwen";
homeDirectory = "/home/youwen";
};
liminalOS = {
utils.easyeffects.enable = true;
2024-12-31 04:27:39 -08:00
desktop.hyprland.screenlocker.useNvidiaCrashFix = true;
2025-01-05 02:32:12 -08:00
desktop.hyprland.useAdvancedBindings = true;
};
programs.git = {
userName = "Youwen Wu";
userEmail = "youwenw@gmail.com";
signing = {
signByDefault = true;
key = "8F5E6C1AF90976CA7102917A865658ED1FE61EC3";
2024-12-27 18:03:08 -08:00
};
};
# must set identitiesOnly since we are adding a ton of SSH keys to ssh-agent and it tries all of them
programs.ssh = {
2024-12-27 18:03:08 -08:00
enable = true;
matchBlocks = {
"code.youwen.dev" = {
host = "code.youwen.dev";
# port = 222;
identityFile = config.age.secrets.youwen_dev_ssh_priv_key.path;
identitiesOnly = true;
2024-12-27 18:03:08 -08:00
};
"github" = {
host = "github.com";
identityFile = config.age.secrets.github_ssh_priv_key.path;
identitiesOnly = true;
2024-12-27 18:03:08 -08:00
};
"gallium" = {
host = "gallium";
port = 222;
identityFile = config.age.secrets.gallium_server_ssh.path;
identitiesOnly = true;
};
"truth.youwen.dev" = {
host = "truth.youwen.dev";
port = 222;
identitiesOnly = true;
identityFile = config.age.secrets.gallium_server_ssh.path;
};
};
addKeysToAgent = "yes";
};
# text/html; ~/.mutt/view_attachment.sh %s html; test=test -n "$DISPLAY"
home.file.".mailcap".text = ''
text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal
text/html; ${pkgs.w3m}/bin/w3m -v -F -T text/html -dump %s; copiousoutput
'';
2024-12-28 23:56:09 -08:00
programs.fish.functions = {
vault = ''
set vault_dir $HOME/Documents/vaults/vault
if test -d $vault_dir
cd $vault_dir
git pull
vim
else
echo "Vault is not yet cloned. Cloning repository now."
mkdir -p $HOME/Documents/vaults
cd $HOME/Documents/vaults
git clone git@code.youwen.dev:youwen5/vault.git
cd $vault_dir
nvim -c "Telescope find_files"
2024-12-28 23:56:09 -08:00
end
'';
2025-01-06 00:00:02 -08:00
ale = ''
set vault_dir $HOME/Documents/alexandria/content
if test -d $vault_dir
cd $vault_dir
git pull
vim
else
echo "Vault is not yet cloned. Cloning repository now."
mkdir -p $HOME/Documents
cd $HOME/Documents
git clone git@code.youwen.dev:youwen5/alexandria.git
cd $vault_dir
nvim -c "Telescope find_files"
end
'';
2024-12-28 23:56:09 -08:00
};
}