1
0
Fork 0

Add Kubectl environment variables

This commit is contained in:
Aires 2024-04-13 17:02:35 -04:00
parent a08ad47ee3
commit 4f172af3be
5 changed files with 113 additions and 97 deletions

View file

@ -31,7 +31,7 @@
syncthing = {
enable = true;
autostart = true;
enableTray = true;
enableTray = false;
};
};
};

View file

@ -44,14 +44,14 @@ in
enable = true;
services.syncthing = {
enable = true;
enableTray = true;
enableTray = false; # Recent versions of STT don't recognize Gnome's tray. Uninstalling for now.
};
};
gremlin = {
enable = true;
services.syncthing = {
enable = true;
enableTray = true;
enableTray = false;
};
};
};

View file

@ -29,8 +29,9 @@ while [[ $# -gt 0 ]]; do
exit
;;
*)
echo "Unknown argument $1"
exit 1
#echo "Unknown argument $1"
#exit 1
break
;;
esac
done

View file

@ -47,59 +47,64 @@ with lib;
../common/gnome.nix
];
home = {
# The state version is required and should stay at the version you originally installed.
stateVersion = "24.05";
home = {
# The state version is required and should stay at the version you originally installed.
stateVersion = "24.05";
# Basic setup
username = "aires";
homeDirectory = "/home/aires";
# Basic setup
username = "aires";
homeDirectory = "/home/aires";
# Install extra packages, specifically gnome extensions
packages = lib.mkIf config.host.ui.gnome.enable [
pkgs.gnomeExtensions.wallpaper-slideshow
];
};
# Install extra packages, specifically gnome extensions
packages = lib.mkIf config.host.ui.gnome.enable [
pkgs.gnomeExtensions.wallpaper-slideshow
];
programs = {
# Let home Manager install and manage itself.
home-manager.enable = true;
# Set environment variables
sessionVariables = {
KUBECONFIG = "/home/aires/.kube/config";
};
};
# Set up git
git = {
enable = true;
# Username and email set in nix-secrets
extraConfig = {
push.autoSetupRemote = "true";
};
};
programs = {
# Let home Manager install and manage itself.
home-manager.enable = true;
# Set up Zsh
zsh = {
enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "gentoo";
};
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 = {
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";
};
};
# Set up git
git = {
enable = true;
# Username and email set in nix-secrets
extraConfig = {
push.autoSetupRemote = "true";
};
};
# Set up Zsh
zsh = {
enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "gentoo";
};
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 = {
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

View file

@ -46,54 +46,64 @@ with lib;
../common/gnome.nix
];
home = {
# Basic setup
username = "gremlin";
homeDirectory = "/home/gremlin";
home = {
# Basic setup
username = "gremlin";
homeDirectory = "/home/gremlin";
# The state version is required and should stay at the version you originally installed.
stateVersion = "24.05";
};
# The state version is required and should stay at the version you originally installed.
stateVersion = "24.05";
programs = {
# Let home Manager install and manage itself.
home-manager.enable = true;
# Set environment variables
sessionVariables = {
KUBECONFIG = "/home/gremlin/.kube/config";
};
# Set up git
git = {
# Name and email set in nix-secrets
enable = true;
extraConfig = {
push.autoSetupRemote = "true";
};
};
# Install packages specific to Gremlin
packages = [
pkgs.awscli2
];
};
# 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";
};
programs = {
# Let home Manager install and manage itself.
home-manager.enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
};
};
};
# Set up git
git = {
# Name and email set in nix-secrets
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
};