update readme, delete floating hardware config file
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0f0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -1,17 +1,15 @@
|
||||
# Roy's NixOS Homelab Config
|
||||
|
||||
### Assumptions
|
||||
<ul>
|
||||
<li>You're connected to wired internet</li>
|
||||
</ul>
|
||||
- You're connected to wired internet (eth)
|
||||
- You're me; To directly run/use this config, you have to be me (i.e. have my ssh private keys to pull in quasiSecrets and my age keys to decrypt with sops-nix)
|
||||
|
||||
### Setup Steps
|
||||
1. Flash NixOS onto the server hardware
|
||||
2. Create a sudo password for root ```sudo passwd```
|
||||
3. Get IP address with ```ip addr```
|
||||
4. Run the bash script ```homelab-config/nixos/script.sh``` using that IP address (```script.sh -h``` for options)
|
||||
4. From the nixos directory, run the bash script ```bootstrap.sh``` using IP address from step 3 (```./bootstrap.sh -h``` for options)
|
||||
|
||||
### Random
|
||||
- Any time the quasiSecret repository is updated, run ```nix flake lock --update-input quasiSecrets``` to ensure you're using the most recent pushed commit
|
||||
|
||||
|
||||
- If you aren't me, replace my quasiSecrets repo with your own, update the .sops.yaml file with your own age key to update the ```secrets/*``` files, place your own hashed user password into the ```users.users.<userName>.hashedPassord```, and your own public key into ```users.users.<userName>.openssh.authorizedKeys.keys```
|
||||
|
||||
Reference in New Issue
Block a user