hosts/retic: init

This commit is contained in:
Aaron Bieber 2024-09-29 14:52:36 -06:00
parent ed900c7436
commit 131e7d37c2
No known key found for this signature in database
3 changed files with 74 additions and 0 deletions

View File

@ -258,6 +258,7 @@
nixos-hardware.nixosModules.framework-11th-gen-intel
] "stan";
weather = buildSys "aarch64-linux" stable [ ] "weather";
retic = buildSys "aarch64-linux" unstable [ ] "retic";
faf = buildSys "x86_64-linux" stable [ ./configs/hardened.nix ] "faf";
box = buildSys "x86_64-linux" unstable [ ./configs/hardened.nix ] "box";

37
hosts/retic/default.nix Normal file
View File

@ -0,0 +1,37 @@
{ pkgs
, lib
, ...
}:
{
_module.args.isUnstable = true;
imports = [
./hardware-configuration.nix
];
boot = {
initrd.availableKernelModules = [ "usbhid" "usb_storage" "vc4" ];
kernelPackages = pkgs.linuxPackages;
#kernelModules = [ "raspberrypi_ts" "rtc-ds3232" "rtc-ds1307" ];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};
networking = {
hostName = "retic";
};
preDNS.enable = false;
systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart =
lib.mkForce [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
services = {
libinput.enable = true;
};
environment.systemPackages = with pkgs; [
python3Packages.rns
python3Packages.nomadnet
];
system.stateVersion = "24.05";
}

View File

@ -0,0 +1,36 @@
{ ... }: {
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
};
hardware = {
enableRedistributableFirmware = true;
bluetooth.enable = true;
};
#hardware.deviceTree = {
# overlays = [
# #"${pkgs.raspberrypifw}/share/raspberrypi/boot/overlays/rpi-ft5406.dtbo"
# {
# name = "rpi4-cma-overlay";
# dtsText = ''
# // SPDX-License-Identifier: GPL-2.0
# /dts-v1/;
# /plugin/;
# / {
# compatible = "brcm,bcm2711";
# fragment@0 {
# target = <&cma>;
# __overlay__ {
# size = <(512 * 1024 * 1024)>;
# };
# };
# };
# '';
# }
# ];
#};
}