Files
.dotfiles/system/core/env.nix
T

54 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;
fonts.packages = with pkgs; [
nerd-fonts.hack
];
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
histSize = 1000000;
setOptions = [
"HIST_IGNORE_ALL_DUPS"
];
shellAliases = {
enix = "nvim $HOME/.dotfiles/flake.nix";
ehome = "nvim $HOME/.dotfiles/home/jashton.nix";
l = "ls -la";
ports = "cat $HOME/.dotfiles/ports.registry";
};
ohMyZsh = {
enable = true;
theme = "aussiegeek";
plugins = [
"git"
];
};
interactiveShellInit = ''
if [ -f "/run/secrets/vaultwarden_clientid" ]; then
export BW_CLIENTID=$(cat /run/secrets/vaultwarden_clientid)
export BW_CLIENTSECRET=$(cat /run/secrets/vaultwarden_clientsecret)
fi
'';
};
}