This commit is contained in:
ari committed 2026-09-02 13:33:36 -04:00
1 parent 838924d13e
commit 2b040019ca
6 files changed
+57 -513

No files matched your search

+2
View File
@@ -69,6 +69,8 @@ in
};
virtualisation.waydroid.enable = true;
hardware.enableRedistributableFirmware = true;
# QEMU emulation for building aarch64 (e.g. hl-pi1) locally instead of on-device
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# Tailscale
services.tailscale.enable = true;
services.tailscale.extraDaemonFlags = [ "--statedir=/var/lib/tailscale" ];
+2 -33
View File
@@ -28,13 +28,8 @@
amdgpu.enable = true;
udevrules.coraltpu.enable = true;
};
server.k3s = {
enable = false;
envPath = "/opt/k3s/k3s.env";
};
server.services = {
ai.enable = true;
jellyfin.enable = false;
};
};
networkDrives.enable = true;
@@ -131,9 +126,6 @@
};
services.displayManager.defaultSession = "gnome";
services.displayManager.gdm.enable = false;
services.autosuspend.enable = false;
services.displayManager.autoLogin = {
enable = true;
user = config.skyg.user.name;
@@ -147,23 +139,6 @@
systemd.targets.hybrid-sleep.enable = false;
services.displayManager.gdm.autoSuspend = false;
services.displayManager.gdm.autoLogin.delay = 0;
# Remote Desktop
services.xrdp.enable = true;
services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
services.xrdp.openFirewall = true;
# Sunshine
services.sunshine = {
enable = false;
autoStart = false;
capSysAdmin = true;
openFirewall = true;
};
# security.wrappers.sunshine = {
# owner = "root";
# group = "root";
# capabilities = "cap_sys_admin+p";
# source = "${pkgs.sunshine}/bin/sunshine";
# };
# Firewall & permissions
networking.firewall.enable = false;
users.users.ari.extraGroups = [ "input" ];
@@ -173,6 +148,8 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
# QEMU emulation for building aarch64 (e.g. hl-pi1) as a remote build machine
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.kernelPackages = pkgs.linuxPackages_latest; # linuxPackages_hardened was removed in 26.05
# Wake on Lan
networking.interfaces.enp4s0.wakeOnLan.enable = true;
@@ -184,12 +161,4 @@
docker
runc
];
# Steam
programs.steam = {
enable = false;
extest.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
}
+2
View File
@@ -112,6 +112,8 @@ in
# Boot
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# QEMU emulation for building aarch64 (e.g. hl-pi1) as a remote build machine
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# Tailscale
services.tailscale.enable = true;
# Desktop Env - DankGreeter
+25
View File
@@ -0,0 +1,25 @@
{ lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
fileSystems."/boot/firmware" = {
device = "/dev/disk/by-label/FIRMWARE";
fsType = "vfat";
options = [ "nofail" "noauto" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}
+26
View File
@@ -0,0 +1,26 @@
{ lib, pkgs, determinate, ... }:
{
skyg.user.enable = true;
skyg.nixos.common.ssh-server.enable = true;
# Determinate Nix builds its own Nix from source (no aarch64-linux binary
# cache hit for us), and its test suite fails under QEMU emulation because
# nested seccomp doesn't work through the translation layer. Skip the test
# suite for this build only — Determinate Nix itself stays enabled.
nix.package = lib.mkForce (
determinate.inputs.nix.packages.${pkgs.stdenv.system}.default.overrideAttrs (old: {
doCheck = false;
})
);
# CM4 boots via Pi firmware + U-Boot reading extlinux.conf (set up by the
# official NixOS SD image) — not systemd-boot/EFI like the other hosts.
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
# Serial console, useful for headless debugging over UART.
boot.kernelParams = [ "console=ttyS0,115200n8" "console=tty0" ];
# SD image has no swap partition; use compressed RAM swap instead.
zramSwap.enable = true;
}