Compare commits
	
		
			No commits in common. "5a37fd5165a73db74b921725ea1681d38a50ee8e" and "bfeae72f731dfa44850034db29347d8d0c9adf17" have entirely different histories.
		
	
	
		
			5a37fd5165
			...
			bfeae72f73
		
	
		
					 4 changed files with 1 additions and 149 deletions
				
			
		
							
								
								
									
										18
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -68,24 +68,6 @@ | |||
|           } | ||||
|         ]; | ||||
|       }; | ||||
|       tanzanite = nixpkgs.lib.nixosSystem { | ||||
|         system = "x86_64-linux"; | ||||
|         specialArgs = { inherit inputs; }; | ||||
|         modules = [ | ||||
| 
 | ||||
|           ./packages/default.nix | ||||
|           ./hosts/tanzanite/default.nix | ||||
|           ./users/nyadmin/default.nix | ||||
| 
 | ||||
|           home-manager.nixosModules.home-manager | ||||
|           { | ||||
|              home-manager.extraSpecialArgs = {inherit inputs;}; | ||||
|              home-manager.useGlobalPkgs = true; | ||||
|              home-manager.useUserPackages = true; | ||||
|              home-manager.users.nyadmin = import ./users/nyadmin/home.nix; | ||||
|           } | ||||
|         ]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,130 +0,0 @@ | |||
| { config, lib, pkgs, modulesPath, ... }: | ||||
| let | ||||
| 
 | ||||
| in { | ||||
|   imports = [ ../default.nix ]; | ||||
| 
 | ||||
|   stitchyconf = { | ||||
|     form = "server"; | ||||
|   }; | ||||
| 
 | ||||
|   networking.hostName = "tanzanite"; | ||||
|   time.timeZone = "America/Los_Angeles"; | ||||
| 
 | ||||
|   virtualisation.docker = { | ||||
|     enable = true; | ||||
|     daemon.settings = { | ||||
|       data-root = "/opt/data"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   security.acme = { | ||||
|     acceptTerms = true; | ||||
|     defaults.email = "stitchy@stitchy.moe"; | ||||
|     defaults.dnsProvider = "porkbun"; | ||||
|     defaults.environmentFile = "/persist/acme/porkbun.tokens"; | ||||
|     certs = { | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   services.nginx = { | ||||
|     enable = true; | ||||
|     recommendedProxySettings = true; | ||||
|     recommendedTlsSettings = true; | ||||
|     virtualHosts = { | ||||
|       "stitchy.moe" = { | ||||
|         enableACME = true; | ||||
|         forceSSL = true; | ||||
|         root = "/opt/www/stitchy.moe/public"; | ||||
|       }; | ||||
|       "gay.stitchy.moe" = { | ||||
|         enableACME = true; | ||||
|         forceSSL = true; | ||||
|         locations."/" = { | ||||
|           proxyPass = "http://127.0.0.1:3333"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   networking.firewall = { | ||||
|     allowedTCPPorts = [ 22 80 222 443 ]; | ||||
|   }; | ||||
| 
 | ||||
|   boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; | ||||
|   boot.initrd.kernelModules = [ ]; | ||||
|   boot.kernelModules = [ "kvm-intel" ]; | ||||
|   boot.extraModulePackages = [ ]; | ||||
| 
 | ||||
|   # Redundant Storage | ||||
|   fileSystems."/opt/data" = { | ||||
|     device = "/dev/disk/by-uuid/0acaee69-07df-45f3-a2f4-65e2f3fda529"; | ||||
|     fsType = "btrfs"; | ||||
|     options = [ "subvol=@data" "compress=zstd" ]; | ||||
|   }; | ||||
| 
 | ||||
|   fileSystems."/opt/docker-containers" = { | ||||
|     device = "/dev/disk/by-uuid/0acaee69-07df-45f3-a2f4-65e2f3fda529"; | ||||
|     fsType = "btrfs"; | ||||
|     options = [ "subvol=@docker-containers" "compress=zstd" ]; | ||||
|   }; | ||||
| 
 | ||||
|   fileSystems."/opt/www" = { | ||||
|     device = "/dev/disk/by-uuid/0acaee69-07df-45f3-a2f4-65e2f3fda529"; | ||||
|     fsType = "btrfs"; | ||||
|     options = [ "subvol=@www" "compress=zstd" ]; | ||||
|   }; | ||||
| 
 | ||||
|   # Non-Redundant Storage | ||||
|   fileSystems."/" = | ||||
|     { device = "/dev/disk/by-uuid/ac31f656-1882-415e-bbb7-b4d24c0af01c"; | ||||
|       fsType = "btrfs"; | ||||
|       options = [ "subvol=@nix-root" "compress=zstd"]; | ||||
|     }; | ||||
| 
 | ||||
|   fileSystems."/home" = | ||||
|     { device = "/dev/disk/by-uuid/ac31f656-1882-415e-bbb7-b4d24c0af01c"; | ||||
|       fsType = "btrfs"; | ||||
|       options = [ "subvol=@nix-home" "compress=zstd"]; | ||||
|     }; | ||||
| 
 | ||||
|   fileSystems."/nix/store" = | ||||
|     { device = "/dev/disk/by-uuid/ac31f656-1882-415e-bbb7-b4d24c0af01c"; | ||||
|       fsType = "btrfs"; | ||||
|       options = [ "subvol=@nix" "noatime" "compress=zstd"]; | ||||
|     }; | ||||
| 
 | ||||
|   fileSystems."/persist" = | ||||
|     { device = "/dev/disk/by-uuid/ac31f656-1882-415e-bbb7-b4d24c0af01c"; | ||||
|       fsType = "btrfs"; | ||||
|       options = [ "subvol=@persist" "compress=zstd"]; | ||||
|     }; | ||||
| 
 | ||||
|   fileSystems."/boot" = | ||||
|     { device = "/dev/disk/by-uuid/262D-F161"; | ||||
|       fsType = "vfat"; | ||||
|       options = [ "fmask=0077" "dmask=0077" ]; | ||||
|     }; | ||||
| 
 | ||||
|   swapDevices = | ||||
|     [ { device = "/dev/disk/by-uuid/5c007a16-9f0f-42d0-8761-63bea3120f6d"; } | ||||
|     ]; | ||||
| 
 | ||||
|   # Static Networking | ||||
|   systemd.network.enable = true; | ||||
|   networking.useNetworkd = true; | ||||
|   systemd.network.networks."10-lan" = { | ||||
|     matchConfig.Name = "enp0s31f6"; | ||||
|     address = [ | ||||
|         "192.168.51.3/24" | ||||
|     ]; | ||||
|     routes = [ | ||||
|       { Gateway = "192.168.51.1"; } | ||||
|     ]; | ||||
|     linkConfig.RequiredForOnline = "routable"; | ||||
|   }; | ||||
| 
 | ||||
|   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||||
|   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||
|   system.stateVersion = "24.11"; | ||||
| } | ||||
|  | @ -75,7 +75,6 @@ in | |||
|       "glsl_analyzer" | ||||
|       "gnumake" | ||||
|       "gnupg" | ||||
|       "hugo" | ||||
|       "lazygit" | ||||
|       "mypy" | ||||
|       "neofetch" | ||||
|  |  | |||
|  | @ -55,6 +55,7 @@ in | |||
|     home.packages = with pkgs; [ | ||||
|       cider | ||||
|       ngspice | ||||
|       hugo | ||||
|       kicad | ||||
|       #steamvr? | ||||
|       procps | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue