mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
Burnout crawlout
This commit is contained in:
parent
fa19a286c5
commit
e193ee5a9f
7 changed files with 10 additions and 275 deletions
|
|
@ -1,89 +0,0 @@
|
|||
_: let
|
||||
hostConfig = {
|
||||
lib,
|
||||
config,
|
||||
modulesPath,
|
||||
tree,
|
||||
...
|
||||
}: {
|
||||
imports = with tree.nixos.roles; [
|
||||
server
|
||||
k8s-cluster
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/cf27e80b-f418-472e-8846-36073a76a628";
|
||||
fsType = "ext4";
|
||||
};
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
networking = {
|
||||
hostName = "ran";
|
||||
domain = "gensokyo.zone";
|
||||
nameservers = [
|
||||
"8.8.8.8"
|
||||
];
|
||||
defaultGateway = "172.31.1.1";
|
||||
defaultGateway6 = {
|
||||
address = "fe80::1";
|
||||
interface = "eth0";
|
||||
};
|
||||
dhcpcd.enable = false;
|
||||
usePredictableInterfaceNames = lib.mkForce false;
|
||||
interfaces = {
|
||||
eth0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "5.78.46.139";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = "2a01:4ff:1f0:c700::1";
|
||||
prefixLength = 64;
|
||||
}
|
||||
{
|
||||
address = "fe80::9400:2ff:fe25:4acb";
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
ipv4.routes = [
|
||||
{
|
||||
address = "172.31.1.1";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
ipv6.routes = [
|
||||
{
|
||||
address = "fe80::1";
|
||||
prefixLength = 128;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
boot = {
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/sda";
|
||||
version = 2;
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||
kernelModules = [];
|
||||
};
|
||||
kernelModules = [];
|
||||
extraModulePackages = [];
|
||||
};
|
||||
services.udev.extraRules = ''
|
||||
ATTR{address}=="96:00:02:25:4a:cb", NAME="eth0"
|
||||
'';
|
||||
system.stateVersion = "21.11";
|
||||
};
|
||||
in {
|
||||
arch = "x86_64";
|
||||
type = "NixOS";
|
||||
modules = [
|
||||
hostConfig
|
||||
];
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ _: let
|
|||
inherit (lib.modules) mkDefault;
|
||||
in {
|
||||
imports = with tree.nixos.roles; [
|
||||
rosetta
|
||||
bootable
|
||||
];
|
||||
|
||||
|
|
@ -16,6 +15,8 @@ _: let
|
|||
initrd.availableKernelModules = ["virtio_pci" "xhci_pci" "usb_storage" "usbhid"];
|
||||
};
|
||||
|
||||
virtualization.rosetta.enable = true;
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/d91cbfb6-5a09-45d8-b226-fc97c6b09f61";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ _: let
|
|||
enable = true;
|
||||
extraConfig = ''
|
||||
Host renko
|
||||
HostName 192.168.64.3
|
||||
HostName 192.168.64.5
|
||||
Port 62954
|
||||
User root
|
||||
'';
|
||||
|
|
@ -92,7 +92,14 @@ _: let
|
|||
"obsidian"
|
||||
"contexts"
|
||||
"rectangle"
|
||||
"signal"
|
||||
"telegram"
|
||||
"discord"
|
||||
"deluge"
|
||||
"keybase"
|
||||
"anki"
|
||||
"firefox"
|
||||
"google-chrome"
|
||||
];
|
||||
taps = [
|
||||
"pulumi/tap"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue