nix/nixos/hosts/steamdeck/default.nix
2024-04-28 13:18:33 +09:00

44 lines
1.4 KiB
Nix

{ inputs, config, lib, username, pkgs, ... }: {
imports = [
inputs.jovian.nixosModules.default
./disks.nix
../../common/modules/boot.nix
../../common/services/tailscale-autoconnect.nix
];
nixpkgs.config.allowUnfree = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" "acpi_call" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
# Set your time zone.
time.timeZone = "Asia/Tokyo";
# Set the networking hostname:
networking.hostName = "steamdeck";
environment.systemPackages = with pkgs; [
python3 # decky-loader required
jupiter-dock-updater-bin
];
jovian = {
decky-loader = {
enable = true;
user = username;
};
steam = {
enable = true;
autoStart = true;
user = username;
desktopSession = "plasma";
};
devices.steamdeck.enable = true;
hardware.has.amd.gpu = true;
};
}