mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
So long, Hetzner
VMs are sufficient.
This commit is contained in:
parent
a8bc4a11b1
commit
59e724e9fd
2 changed files with 4 additions and 65 deletions
13
flake.nix
13
flake.nix
|
|
@ -65,15 +65,10 @@
|
|||
];
|
||||
|
||||
flake = {
|
||||
# Configurations for Linux (NixOS) systems
|
||||
nixosConfigurations = {
|
||||
linux-builder =
|
||||
self.nixos-flake.lib.mkLinuxSystem
|
||||
./systems/linux-builder.nix;
|
||||
immediacy =
|
||||
self.nixos-flake.lib.mkLinuxSystem
|
||||
./systems/hetzner/ax41.nix;
|
||||
};
|
||||
# Configurations for my NixOS VM (running on Mac)
|
||||
nixosConfigurations.linux-builder =
|
||||
self.nixos-flake.lib.mkLinuxSystem
|
||||
./systems/linux-builder.nix;
|
||||
|
||||
# Configurations for my (only) macOS machine (using nix-darwin)
|
||||
darwinConfigurations.appreciate =
|
||||
|
|
|
|||
|
|
@ -1,56 +0,0 @@
|
|||
{ flake, modulesPath, lib, ... }: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
flake.inputs.self.nixosModules.default # Defined in nixos/default.nix
|
||||
flake.inputs.sops-nix.nixosModules.sops
|
||||
flake.inputs.disko.nixosModules.disko
|
||||
../../nixos/nixos-container.nix
|
||||
../../nixos/server/harden
|
||||
];
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
sops.defaultSopsFile = ./secrets.json;
|
||||
sops.defaultSopsFormat = "json";
|
||||
services.tailscale.enable = true;
|
||||
services.openssh.enable = true;
|
||||
|
||||
boot = {
|
||||
loader.grub = {
|
||||
devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ];
|
||||
binfmt.emulatedSystems = [ "aarch64-linux" ]; # For cross-compiling, https://discourse.nixos.org/t/how-do-i-cross-compile-a-flake/12062/4?u=srid
|
||||
swraid.mdadmConf = ''
|
||||
MAILADDR srid@srid.ca
|
||||
'';
|
||||
};
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
hardware = {
|
||||
cpu.intel.updateMicrocode = true;
|
||||
enableRedistributableFirmware = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "immediacy";
|
||||
useDHCP = false;
|
||||
interfaces."eth0".ipv4.addresses = [
|
||||
{
|
||||
address = "65.109.35.172"; # your IPv4 here
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
interfaces."eth0".ipv6.addresses = [
|
||||
{
|
||||
address = "2a01:4f9:5a:2120::2"; # Your IPv6 here
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
defaultGateway = "65.109.35.129"; # `ip route | grep default`
|
||||
nameservers = [ "8.8.8.8" ];
|
||||
};
|
||||
disko.devices = import ../../nixos/disko/two-raids-on-two-disks.nix {
|
||||
inherit lib;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue