aboutsummaryrefslogtreecommitdiff
path: root/nix-personal
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-12-12 02:03:58 +0000
committerAria <me@aria.rip>2023-12-12 02:03:58 +0000
commit35564ad41cfbda2b2a698061a2134956736744c9 (patch)
tree82093ecbeb1f1b9aac9ffa5594f339a22783f2f5 /nix-personal
parentc19dc0924481c7edf4938f5aa105f481a787a30e (diff)
delete some old stuffHEADmain
Diffstat (limited to 'nix-personal')
-rw-r--r--nix-personal/flake.lock48
-rw-r--r--nix-personal/flake.nix40
-rw-r--r--nix-personal/hosts/puppy.nix71
-rw-r--r--nix-personal/k8s/ingress.yaml33
-rw-r--r--nix-personal/k8s/svc.yaml24
-rw-r--r--nix-personal/profiles/common.nix10
-rw-r--r--nix-personal/profiles/landing/default.nix7
-rw-r--r--nix-personal/profiles/landing/html/index.html5
-rw-r--r--nix-personal/profiles/nginx.nix4
9 files changed, 0 insertions, 242 deletions
diff --git a/nix-personal/flake.lock b/nix-personal/flake.lock
deleted file mode 100644
index b15b3fb..0000000
--- a/nix-personal/flake.lock
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "nodes": {
- "disko": {
- "inputs": {
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1701775991,
- "narHash": "sha256-/51DaSTzoW+wQfj5P9EnTbSxixDFjjhfnGdMKcSp+is=",
- "owner": "nix-community",
- "repo": "disko",
- "rev": "f84c3684900d11cf19f530070d32d55f0ed51374",
- "type": "github"
- },
- "original": {
- "owner": "nix-community",
- "repo": "disko",
- "type": "github"
- }
- },
- "nixpkgs": {
- "locked": {
- "lastModified": 1701539137,
- "narHash": "sha256-nVO/5QYpf1GwjvtpXhyxx5M3U/WN0MwBro4Lsk+9mL0=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "933d7dc155096e7575d207be6fb7792bc9f34f6d",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixos-23.11",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "root": {
- "inputs": {
- "disko": "disko",
- "nixpkgs": "nixpkgs"
- }
- }
- },
- "root": "root",
- "version": 7
-}
diff --git a/nix-personal/flake.nix b/nix-personal/flake.nix
deleted file mode 100644
index 7fe8056..0000000
--- a/nix-personal/flake.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
- inputs.disko.url = "github:nix-community/disko";
- inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
-
- outputs = {
- nixpkgs,
- disko,
- ...
- }: let
- imports = [
- disko.nixosModules.disko
- ./hosts/puppy.nix
- ];
- in {
- devShells.x86_64-linux.default = let
- pkgs = import nixpkgs {system = "x86_64-linux";};
- in
- pkgs.mkShell {
- buildInputs = [pkgs.colmena];
- };
-
- nixosConfigurations.puppy = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = imports;
- };
-
- colmena = {
- meta = {
- nixpkgs = import nixpkgs {
- system = "x86_64-linux";
- };
- };
-
- puppy = {...}: {
- inherit imports;
- };
- };
- };
-}
diff --git a/nix-personal/hosts/puppy.nix b/nix-personal/hosts/puppy.nix
deleted file mode 100644
index 948b243..0000000
--- a/nix-personal/hosts/puppy.nix
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- modulesPath,
- lib,
- ...
-}: {
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- (modulesPath + "/profiles/qemu-guest.nix")
- ../profiles/common.nix
- ../profiles/landing
- ];
-
- disko.devices = {
- disk.disk1 = {
- device = lib.mkDefault "/dev/sda";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- boot = {
- name = "boot";
- size = "1M";
- type = "EF02";
- };
- esp = {
- name = "ESP";
- size = "500M";
- type = "EF00";
- content = {
- type = "filesystem";
- format = "vfat";
- mountpoint = "/boot";
- };
- };
- swap = {
- name = "swap";
- size = "2G";
- content = {
- type = "swap";
- };
- };
- root = {
- name = "root";
- size = "100%";
- content = {
- type = "filesystem";
- format = "ext4";
- mountpoint = "/";
- mountOptions = [
- "defaults"
- ];
- };
- };
- };
- };
- };
- };
-
- boot.loader.grub = {
- # no need to set devices, disko will add all devices that have a EF02 partition to the list already
- # devices = [ ];
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
-
- networking.hostName = "puppy";
- deployment = {
- targetHost = "puppy.girlth.ing";
- buildOnTarget = true;
- };
-}
diff --git a/nix-personal/k8s/ingress.yaml b/nix-personal/k8s/ingress.yaml
deleted file mode 100644
index 3849905..0000000
--- a/nix-personal/k8s/ingress.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- annotations:
- traefik.ingress.kubernetes.io/router.tls: "true"
- traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
- traefik.ingress.kubernetes.io/router.tls.domains.0.main: 'girlth.ing'
- traefik.ingress.kubernetes.io/router.tls.domains.0.sans: '*.girlth.ing'
- name: girlthing-all
- namespace: tcmal
-spec:
- ingressClassName: traefik
- rules:
- - host: '*.girlth.ing'
- http:
- paths:
- - backend:
- service:
- name: puppy
- port:
- name: http
- path: /
- pathType: ImplementationSpecific
- - host: 'girlth.ing'
- http:
- paths:
- - backend:
- service:
- name: puppy
- port:
- name: http
- path: /
- pathType: ImplementationSpecific
diff --git a/nix-personal/k8s/svc.yaml b/nix-personal/k8s/svc.yaml
deleted file mode 100644
index e6dfdfb..0000000
--- a/nix-personal/k8s/svc.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: puppy
- namespace: tcmal
-spec:
- ports:
- - name: http
- port: 80
- protocol: TCP
- targetPort: 80
----
-apiVersion: v1
-kind: Endpoints
-metadata:
- name: puppy
- namespace: tcmal
-subsets:
-- addresses:
- - ip: 192.168.1.248
- ports:
- - name: http
- port: 80
- protocol: TCP
diff --git a/nix-personal/profiles/common.nix b/nix-personal/profiles/common.nix
deleted file mode 100644
index b4e1337..0000000
--- a/nix-personal/profiles/common.nix
+++ /dev/null
@@ -1,10 +0,0 @@
-{...}: {
- system.stateVersion = "23.11";
-
- networking.domain = "girlth.ing";
-
- services.openssh.enable = true;
- users.users.root.openssh.authorizedKeys.keys = [
- "no-touch-required sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPpKjZfzPN1KxVskFRnmTTCwzyCtjwcXVZc4i1rNfl9oAAAABHNzaDo= me@aria.rip"
- ];
-}
diff --git a/nix-personal/profiles/landing/default.nix b/nix-personal/profiles/landing/default.nix
deleted file mode 100644
index 83fc770..0000000
--- a/nix-personal/profiles/landing/default.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{...}: {
- imports = [../nginx.nix];
- services.nginx.virtualHosts."girlth.ing" = {
- default = true;
- root = ./.;
- };
-}
diff --git a/nix-personal/profiles/landing/html/index.html b/nix-personal/profiles/landing/html/index.html
deleted file mode 100644
index 5d5f6be..0000000
--- a/nix-personal/profiles/landing/html/index.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
- <body>
- <h1>It works!</h1>
- </body>
-</html>
diff --git a/nix-personal/profiles/nginx.nix b/nix-personal/profiles/nginx.nix
deleted file mode 100644
index 60124e2..0000000
--- a/nix-personal/profiles/nginx.nix
+++ /dev/null
@@ -1,4 +0,0 @@
-{...}: {
- networking.firewall.allowedTCPPorts = [80];
- services.nginx.enable = true;
-}