Files
nixos-setup/hosts/hl-pi2.nix
T
2026-09-11 16:22:22 -04:00

57 lines
1.7 KiB
Nix

{ lib, pkgs, config, determinate, ... }:
{
skyg = {
user.enable = true;
nixos = {
common.ssh-server.enable = true;
common.hardware = {
sound.enable = true;
pipewire.enable = true;
};
desktop = {
enable = true;
tiler = {
enable = true;
hyprland.enable = true;
hyprland.configLink.enable = false;
noctalia.enable = false;
quickshell.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;
})
);
# Pi 4 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" ];
zramSwap.enable = true;
services.displayManager.dms-greeter = {
enable = true;
compositor.name = "hyprland";
configHome = "/home/${config.skyg.user.name}";
};
services.displayManager.autoLogin = {
enable = true;
user = config.skyg.user.name;
};
services.displayManager.defaultSession = "hyprland";
environment.systemPackages = with pkgs; [
foot
];
}