77 lines
1.7 KiB
Nix
77 lines
1.7 KiB
Nix
{ config, pkgs, lib, jovian, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.jovian.nixosModules.jovian
|
|
inputs.disko.nixosModules.default
|
|
inputs.homeManager.nixosModules.default
|
|
./hardware.nix
|
|
./partitioning.nix
|
|
./home.nix
|
|
./bluetooth.nix
|
|
./padtype.nix
|
|
../common-nixos-config.nix
|
|
];
|
|
system.nixos.tags = [ "host-${config.networking.hostName}" ];
|
|
|
|
boot.loader.systemd-boot.enable = false;
|
|
boot.loader.efi.efiSysMountPoint = "/boot/EFI";
|
|
boot.loader.grub.efiSupport = true;
|
|
boot.loader.grub.device = "nodev";
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
boot.loader.grub.efiInstallAsRemovable = true;
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
networking.hostName = "compute-deck";
|
|
networking.hostId = "e595d9b0";
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.zfs.forceImportRoot = false;
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
jovian.devices.steamdeck.enable = true;
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
services.xserver.enable = true;
|
|
services.displayManager.sddm.enable = true;
|
|
services.xserver.desktopManager.plasma5.enable = true;
|
|
|
|
services.openssh.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
audacity
|
|
librewolf
|
|
jupiter-hw-support
|
|
steamdeck-firmware
|
|
steamdeck-bios-fwupd
|
|
cargo
|
|
clippy
|
|
rust-analyzer
|
|
rustc
|
|
rustfmt
|
|
rustup
|
|
];
|
|
|
|
boot.kernelPatches = [
|
|
{
|
|
name = "gadget";
|
|
patch = null;
|
|
extraStructuredConfig = with lib.kernel; {
|
|
USB_ETH=module;
|
|
USB_GADGET=yes;
|
|
USB_LIBCOMPOSITE=yes;
|
|
USB_CONFIGFS=yes;
|
|
USB_DWC3=module;
|
|
USB_DWC3_PCI=module;
|
|
USB_DWC3_DUAL_ROLE=yes;
|
|
USB_DWC3_HOST=no;
|
|
USB_DWC3_GADGET=no;
|
|
USB_ROLE_SWITCH=yes;
|
|
};
|
|
}
|
|
];
|
|
}
|