Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Nov 20, 2024
1 parent ec2f375 commit 0d2ea0b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
36 changes: 36 additions & 0 deletions identity-server/kubernetes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
labels:
app: hello-world
spec:
replicas: 1
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: nginx
image: nginx:stable
ports:
- containerPort: 80
---
# service.yaml
apiVersion: v1
kind: Service
metadata:
name: hello-world
spec:
type: NodePort
selector:
app: hello-world
ports:
- port: 80
targetPort: 80
nodePort: 30080
25 changes: 25 additions & 0 deletions nix/nixos/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@
programs.home-manager.enable = true;
programs.git.enable = true;

# shell stuff
programs.zsh = {
enable = true;
autosuggestion.enable = true;
enableCompletion = true;
oh-my-zsh.enable = true;
initExtra = ''
set -o vi
'';
envExtra = ''
'';
};

xdg.enable = true;
xdg.configFile = {
"nvim" = {
source = pkgs.fetchFromGitHub {
owner = "thebutlah";
repo = "init.lua";
rev = "5dd312fe5f06e6301baa55f7cf0c70296b03c25f";
hash = "";
};
};
};

# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";

Expand Down
2 changes: 2 additions & 0 deletions nix/nixos/servers-us-east-1/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@

users.groups = {
plugdev = { };
${username} = { };
};
users.users = {
${username} = {
group = username;
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLmHbuCMFpOKYvzMOpTOF+iMX9rrY6Y0naarcbWUV8G ryan@ryan-laptop"
Expand Down

0 comments on commit 0d2ea0b

Please sign in to comment.