Add Kubectl environment variables
This commit is contained in:
parent
a08ad47ee3
commit
4f172af3be
|
@ -31,7 +31,7 @@
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autostart = true;
|
autostart = true;
|
||||||
enableTray = true;
|
enableTray = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,14 +44,14 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTray = true;
|
enableTray = false; # Recent versions of STT don't recognize Gnome's tray. Uninstalling for now.
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
gremlin = {
|
gremlin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTray = true;
|
enableTray = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,8 +29,9 @@ while [[ $# -gt 0 ]]; do
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown argument $1"
|
#echo "Unknown argument $1"
|
||||||
exit 1
|
#exit 1
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
@ -47,59 +47,64 @@ with lib;
|
||||||
../common/gnome.nix
|
../common/gnome.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
# The state version is required and should stay at the version you originally installed.
|
# The state version is required and should stay at the version you originally installed.
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
|
|
||||||
# Basic setup
|
# Basic setup
|
||||||
username = "aires";
|
username = "aires";
|
||||||
homeDirectory = "/home/aires";
|
homeDirectory = "/home/aires";
|
||||||
|
|
||||||
# Install extra packages, specifically gnome extensions
|
# Install extra packages, specifically gnome extensions
|
||||||
packages = lib.mkIf config.host.ui.gnome.enable [
|
packages = lib.mkIf config.host.ui.gnome.enable [
|
||||||
pkgs.gnomeExtensions.wallpaper-slideshow
|
pkgs.gnomeExtensions.wallpaper-slideshow
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
# Set environment variables
|
||||||
# Let home Manager install and manage itself.
|
sessionVariables = {
|
||||||
home-manager.enable = true;
|
KUBECONFIG = "/home/aires/.kube/config";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Set up git
|
programs = {
|
||||||
git = {
|
# Let home Manager install and manage itself.
|
||||||
enable = true;
|
home-manager.enable = true;
|
||||||
# Username and email set in nix-secrets
|
|
||||||
extraConfig = {
|
|
||||||
push.autoSetupRemote = "true";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Set up Zsh
|
# Set up git
|
||||||
zsh = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
oh-my-zsh = {
|
# Username and email set in nix-secrets
|
||||||
enable = true;
|
extraConfig = {
|
||||||
plugins = [
|
push.autoSetupRemote = "true";
|
||||||
"git"
|
};
|
||||||
];
|
};
|
||||||
theme = "gentoo";
|
|
||||||
};
|
# Set up Zsh
|
||||||
autosuggestion.enable = true;
|
zsh = {
|
||||||
syntaxHighlighting.enable = true;
|
enable = true;
|
||||||
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
|
oh-my-zsh = {
|
||||||
prezto = {
|
enable = true;
|
||||||
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
|
plugins = [
|
||||||
};
|
"git"
|
||||||
shellAliases = {
|
];
|
||||||
dry-build = "cd ~/Development/nix-configuration && nix flake update && nixos-rebuild dry-build --flake .";
|
theme = "gentoo";
|
||||||
update = "upgrade";
|
};
|
||||||
upgrade = "cd ~/Development/nix-configuration && nixos-upgrade";
|
autosuggestion.enable = true;
|
||||||
protontricks = "flatpak run com.github.Matoking.protontricks";
|
syntaxHighlighting.enable = true;
|
||||||
please = "sudo";
|
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
|
||||||
};
|
prezto = {
|
||||||
loginExtra = "fastfetch";
|
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
|
||||||
};
|
};
|
||||||
};
|
shellAliases = {
|
||||||
|
dry-build = "cd ~/Development/nix-configuration && nix flake update && nixos-rebuild dry-build --flake .";
|
||||||
|
update = "upgrade";
|
||||||
|
upgrade = "cd ~/Development/nix-configuration && nixos-upgrade";
|
||||||
|
protontricks = "flatpak run com.github.Matoking.protontricks";
|
||||||
|
please = "sudo";
|
||||||
|
};
|
||||||
|
loginExtra = "fastfetch";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# SSH set up in nix-secrets
|
# SSH set up in nix-secrets
|
||||||
|
|
||||||
|
|
|
@ -46,54 +46,64 @@ with lib;
|
||||||
../common/gnome.nix
|
../common/gnome.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
# Basic setup
|
# Basic setup
|
||||||
username = "gremlin";
|
username = "gremlin";
|
||||||
homeDirectory = "/home/gremlin";
|
homeDirectory = "/home/gremlin";
|
||||||
|
|
||||||
# The state version is required and should stay at the version you originally installed.
|
# The state version is required and should stay at the version you originally installed.
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
# Set environment variables
|
||||||
# Let home Manager install and manage itself.
|
sessionVariables = {
|
||||||
home-manager.enable = true;
|
KUBECONFIG = "/home/gremlin/.kube/config";
|
||||||
|
};
|
||||||
|
|
||||||
# Set up git
|
# Install packages specific to Gremlin
|
||||||
git = {
|
packages = [
|
||||||
# Name and email set in nix-secrets
|
pkgs.awscli2
|
||||||
enable = true;
|
];
|
||||||
extraConfig = {
|
};
|
||||||
push.autoSetupRemote = "true";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Set up Zsh
|
programs = {
|
||||||
zsh = {
|
# Let home Manager install and manage itself.
|
||||||
enable = true;
|
home-manager.enable = true;
|
||||||
# Install and source the p10k theme
|
|
||||||
plugins = [
|
|
||||||
{ name = "powerlevel10k"; src = pkgs.zsh-powerlevel10k; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; }
|
|
||||||
{ name = "powerlevel10k-config"; src = ./p10k-config; file = "p10k.zsh"; }
|
|
||||||
];
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
|
|
||||||
prezto = {
|
|
||||||
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
|
|
||||||
};
|
|
||||||
shellAliases = {
|
|
||||||
please = "sudo";
|
|
||||||
};
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
# Set up git
|
||||||
enable = true;
|
git = {
|
||||||
plugins = [
|
# Name and email set in nix-secrets
|
||||||
"git"
|
enable = true;
|
||||||
];
|
extraConfig = {
|
||||||
};
|
push.autoSetupRemote = "true";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set up Zsh
|
||||||
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
# Install and source the p10k theme
|
||||||
|
plugins = [
|
||||||
|
{ name = "powerlevel10k"; src = pkgs.zsh-powerlevel10k; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; }
|
||||||
|
{ name = "powerlevel10k-config"; src = ./p10k-config; file = "p10k.zsh"; }
|
||||||
|
];
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
|
||||||
|
prezto = {
|
||||||
|
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
|
||||||
|
};
|
||||||
|
shellAliases = {
|
||||||
|
please = "sudo";
|
||||||
|
};
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# SSH entries set in nix-secrets
|
# SSH entries set in nix-secrets
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue