new machine: terrier
This commit is contained in:
parent
1957853dfd
commit
9edd4dfbdf
3 changed files with 1612 additions and 0 deletions
3
clan.nix
3
clan.nix
|
@ -8,6 +8,9 @@
|
||||||
frues-pc = {
|
frues-pc = {
|
||||||
tags = ["desktop" "spain" "gaming"];
|
tags = ["desktop" "spain" "gaming"];
|
||||||
};
|
};
|
||||||
|
terrier = {
|
||||||
|
tags = ["server" "headless" "raspberry"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Docs: See https://docs.clan.lol/reference/clanServices
|
# Docs: See https://docs.clan.lol/reference/clanServices
|
||||||
|
|
33
machines/terrier/configuration.nix
Normal file
33
machines/terrier/configuration.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
|
||||||
|
boot.initrd.systemd.tpm2.enable = false; # https://github.com/NixOS/nixpkgs/issues/344963
|
||||||
|
boot = {
|
||||||
|
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
|
||||||
|
initrd.availableKernelModules = ["xhci_pci" "usbhid" "usb_storage"];
|
||||||
|
loader = {
|
||||||
|
grub.enable = false;
|
||||||
|
generic-extlinux-compatible.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "/dev/disk/by-label/NIXOS_SD";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = ["noatime"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
libraspberrypi
|
||||||
|
raspberrypi-eeprom
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
}
|
1576
machines/terrier/facter.json
Normal file
1576
machines/terrier/facter.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue