ops/nixos: rename blade-leader to blade-janeway
This commit is contained in:
parent
e6f4d37982
commit
b0e58ab198
2 changed files with 17 additions and 16 deletions
|
@ -6,34 +6,35 @@
|
|||
let
|
||||
inherit (depot.ops) secrets;
|
||||
in {
|
||||
imports = [
|
||||
../lib/zfs.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.kernelParams = [ "mitigations=off" ];
|
||||
|
||||
fileSystems = let
|
||||
btrfs = subvol: {
|
||||
device = "/dev/sda1";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=${subvol}" ];
|
||||
zfs = device: {
|
||||
device = device;
|
||||
fsType = "zfs";
|
||||
};
|
||||
in {
|
||||
"/" = btrfs "nixos/local/root";
|
||||
"/tmp" = btrfs "nixos/local/tmp";
|
||||
"/nix" = btrfs "nixos/local/nix";
|
||||
"/var" = btrfs "nixos/safe/var";
|
||||
"/home" = btrfs "nixos/safe/home";
|
||||
"/" = zfs "tank/local/root";
|
||||
"/tmp" = zfs "tank/local/tmp";
|
||||
"/nix" = zfs "tank/local/nix";
|
||||
"/var" = zfs "tank/safe/var";
|
||||
"/home" = zfs "tank/safe/home";
|
||||
};
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.devices = [
|
||||
"/dev/disk/by-id/ata-CT2000MX500SSD1_2052E4E1E43F"
|
||||
"/dev/disk/by-id/ata-CT2000MX500SSD1_2052E4E1E45D"
|
||||
];
|
||||
boot.loader.grub.device = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0401c0556e165beb5c1df7b9f438e6ba98af3caa816d88e69b2bf7ec2909f6ca293a000000000000000000009c7343f0ff88671891558107c52824c1-0:0";
|
||||
|
||||
# Networking!
|
||||
networking = {
|
||||
hostName = "blade-leader";
|
||||
hostName = "blade-janeway";
|
||||
hostId = "3a62390f";
|
||||
domain = "house.as205479.net";
|
||||
nameservers = ["8.8.8.8" "8.8.4.4"];
|
||||
useDHCP = false;
|
||||
|
@ -50,7 +51,7 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
my.ip.tailscale = "100.87.45.114";
|
||||
my.ip.tailscale = "100.121.116.85";
|
||||
|
||||
system.stateVersion = "21.05";
|
||||
}
|
|
@ -25,7 +25,7 @@ let
|
|||
"swann"
|
||||
"clouvider-lon01"
|
||||
"etheroute-lon01"
|
||||
"blade-leader"
|
||||
"blade-janeway"
|
||||
];
|
||||
rebuilder = system: (import ./lib/rebuilder.nix (args // { system = system; }));
|
||||
systemCfgs = lib.genAttrs systems
|
||||
|
|
Loading…
Reference in a new issue