setting up oracle-proxy

This commit is contained in:
death916 2025-07-31 02:36:09 -07:00
parent 5698582810
commit 57528b5b30
4 changed files with 59 additions and 3 deletions

View file

@ -64,7 +64,6 @@
homelab = nixpkgs.lib.nixosSystem {
inherit system;
# Pass the unstable pkgs set for HA to the homelab configuration
specialArgs = {
inherit inputs system overlays primaryUser;
unstablePkgsHA = import nixpkgs-unstable { inherit system; };
@ -72,7 +71,6 @@
modules = [
./nixos/homelab.nix # Your main homelab config
./nixos/hardware-homelab.nix
# ./modules/home-assistant.nix # Your HA configuration module
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@ -88,6 +86,22 @@
oracle-proxy = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs system overlays primaryUser;
};
modules = [
./nixos/oracle-proxy.nix # Your main homelab config
./nixos/oracle-proxy-hardware.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit hmLib; };
home-manager.users.death916 = {
imports = [ ./home-manager/oracle-proxy-home.nix ];
};
}
];
}
};
};

View file

@ -0,0 +1,28 @@
{
config,
pkgs,
lib,
inputs,
...
}:
{
imports = [ ../modules/home-manager/common.nix ];
home.username = "death916";
home.homeDirectory = "/home/death916";
programs.bash.enable = true;
home.packages = with pkgs; [
fastfetch
wget
zellij
systemctl-tui
gemini-cli
];
programs.bash.shellAliases = {
nh-push = "/home/death916/nixconfig/scripts/nh-push";
};
}

View file

@ -0,0 +1,14 @@
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
fileSystems."/boot" = { device = "/dev/disk/by-uuid/FA9B-2EA5"; fsType = "vfat"; };
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
}

View file

@ -1,8 +1,8 @@
# ~/nixconfig/nixos/homelab.nix.new
{
imports = [
../modules/nixos/common/base.nix
../modules/nixos/common/tailscale.nix
../nixos/oracle-proxy-hardware.nix
];
}